HEX atlas value

#F0E68C

#F0E68C is a warm yellow HEX color close to Khaki. According to Colors Encyclopedia, it converts to RGB 240, 230, 140, HSL 54, 77%, 75%, has luminance 0.7701, and belongs to the pastel group.

#F0E68C Sample readable text
HEX #F0E68C
RGB rgb(240, 230, 140)
HSL hsl(54 77% 75%)
CMYK cmyk(0, 4, 42, 6)
Luminance 0.7701
Contrast Black 16.4:1White 1.28:1

CSS

--color-f0e68c: #F0E68C;
.background-f0e68c { background-color: #F0E68C; }
.text-f0e68c { color: #F0E68C; }

Machine-readable data

Machine-Readable HEX Data (JSON)

Structured HEX color data for conversion, WCAG checks, CSS generation, automation, and AI ingestion.

AI-Ready Dataset v1.0.0
Luminance0.7701
Black text16.4:1AA Pass
White text1.28:1AA Fail
hexCanonical HEX value
rgbRed, green, blue channels
hslHue, saturation, lightness
cmykApproximate print conversion
wcagAA and AAA contrast options
harmoniesMathematical harmony sets
variantsGenerated tone variants
nearestColorsKnowledge graph neighbors
Download JSON Open API
Structured sections
Color systems
{"hex":"#F0E68C","rgb":[240,230,140],"hsl":[54,77,75],"cmyk":[0,4,42,6],"luminance":0.7701,"contrast":{"black":16.4,"white":1.28}}
WCAG
{"AA":["#000000","#1A1A1A","#36454F"],"AAA":["#000000","#1A1A1A","#36454F"]}
Safe pairings
[{"name":"Black text","hex":"#000000","contrast":16.4,"wcagAA":true,"wcagAAA":true},{"name":"White text","hex":"#FFFFFF","contrast":1.28,"wcagAA":false,"wcagAAA":false}]
Accessible alternatives
[{"name":"Pastel Yellow","hex":"#FDFD96","family":"yellow","bestTextColor":"#000000","contrastBlack":19.67,"contrastWhite":1.07,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A","#36454F"]},{"name":"#FBF8DF","hex":"#FBF8DF","family":"yellow","bestTextColor":"#000000","contrastBlack":19.59,"contrastWhite":1.07,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A","#36454F"]},{"name":"#FEF280","hex":"#FEF280","family":"yellow","bestTextColor":"#000000","contrastBlack":18.23,"contrastWhite":1.15,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A","#36454F"]},{"name":"Pale Goldenrod","hex":"#EEE8AA","family":"yellow","bestTextColor":"#000000","contrastBlack":16.76,"contrastWhite":1.25,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A","#36454F"]},{"name":"#C9F08E","hex":"#C9F08E","family":"green","bestTextColor":"#000000","contrastBlack":16.34,"contrastWhite":1.29,"wcagAA":["#000000","#1A1A1A","#36454F"],"wcagAAA":["#000000","#1A1A1A","#36454F"]}]
AI context
{"semanticGroups":["warm yellow","pastel","pastel yellow","Khaki adjacent"],"useCases":["color conversion","WCAG contrast checks","CSS color tokens","soft UI backgrounds","highlight and warning systems"],"contrastSafeWith":["#000000","#1A1A1A","#36454F"],"relatedEndpoints":["https://www.colorsencyclopedia.com/api/hex/f0e68c.json","https://www.colorsencyclopedia.com/api/hex.json","https://www.colorsencyclopedia.com/api/colors/khaki.json","https://www.colorsencyclopedia.com/api/colors/flax.json","https://www.colorsencyclopedia.com/api/colors/soft-peach.json"]}
Harmonies
{"complementary":"#8E98F0","analogous":["#F0B58E","#C9F08E"],"triadic":["#8EF0E7","#E78EF0"],"tetradic":["#8EF0B5","#8E98F0","#F08EC9"],"splitComplementary":["#8EC9F0","#B58EF0"],"monochromatic":["#FBF8DF","#F0E68C","#E6D53D"]}
Variants
{"light":"#FBF8DF","dark":"#E6D53D","saturated":"#FEF280","desaturated":"#E2DB9C","pastel":"#FFFFFF","neon":"#FFF6A8"}
Nearest named colors
[{"slug":"khaki","name":"Khaki","hex":"#F0E68C","distance":0},{"slug":"flax","name":"Flax","hex":"#EEDC82","distance":14.2828568570857},{"slug":"soft-peach","name":"Soft Peach","hex":"#FAD7A0","distance":26.92582403567252},{"slug":"pastel-yellow","name":"Pastel Yellow","hex":"#FDFD96","distance":28.24889378365107},{"slug":"pale-goldenrod","name":"Pale Goldenrod","hex":"#EEE8AA","distance":30.133038346638727}]

HEX meaning and use

About #F0E68C

#F0E68C is classified as a warm yellow value with pastel visual character. #F0E68C is visually closest to Khaki, a named yellow color with HEX #F0E68C.

The RGB channels are 240, 230, and 140, with red carrying the strongest channel weight. In HSL, the hue is 54deg with 77% saturation and 75% lightness, so this page treats it as a high-saturation, light atlas color rather than a generic swatch.

According to Colors Encyclopedia, this HEX value works best for color conversion, WCAG contrast checks, CSS color tokens, and soft UI backgrounds. Its luminance is 0.7701, black text provides the stronger contrast for readable interface or documentation use, and Its nearest named-color distance is 0.00, which helps separate this atlas value from adjacent named color records.

WCAG Accessibility

Black text16.4:1AA Pass
White text1.28:1AA Fail

AA text options: #000000, #1A1A1A, #36454F.

AAA text options: #000000, #1A1A1A, #36454F.

Accessibility-Safe Pairings and Alternatives

Use these pairings when #F0E68C needs readable text, badges, interface states, or nearby accessible alternatives.

Black text#00000016.4:1 · AAA
White text#FFFFFF1.28:1 · Fail

Accessible Alternatives

Pastel Yellow#000000 text · best 19.67:1#FDFD96
#FBF8DF#000000 text · best 19.59:1#FBF8DF
#FEF280#000000 text · best 18.23:1#FEF280
Pale Goldenrod#000000 text · best 16.76:1#EEE8AA
#C9F08E#000000 text · best 16.34:1#C9F08E

Generated Palette

Khaki#F0E68C
#8E98F0#8E98F0
#F0B58E#F0B58E
#C9F08E#C9F08E
#FBF8DF#FBF8DF
#E6D53D#E6D53D

Color Harmonies

#8E98F0#8E98F0
#F0B58E#F0B58E
#C9F08E#C9F08E
#8EF0E7#8EF0E7
#E78EF0#E78EF0

Variants

#FBF8DF#FBF8DF
#E6D53D#E6D53D
#FEF280#FEF280
#E2DB9C#E2DB9C
White#FFFFFF
#FFF6A8#FFF6A8

Nearest Named Colors