#F0EA5F#F0EA5F

#F0EA5F is a very light, vivid yellow. Relative luminance 0.782; OKLCH L 91.6% C 0.158 H 106.8°. Best body text is #000000 at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#F0EA5F
RGBrgb(240, 234, 95)
HSLhsl(58, 83%, 66%)
HSVhsv(58, 60%, 94%)
CMYKcmyk(0%, 2.5%, 60.4%, 5.9%)
CIE-LABlab(90.87, -14.72, 66.25)
CIE-LCHlch(90.87, 67.87, 102.53°)
OKLaboklab(91.62% -0.0457 0.1514)
OKLCHoklch(91.62% 0.158 106.8)
XYZxyz(67.4258, 78.1993, 22.3665)
Luminance0.7820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EA5F #5F65F0
analogous
#F0A15F #F0EA5F #ADF05F
triadic
#F0EA5F #5FF0EA #EA5FF0
tetradic
#F0EA5F #5FF0A1 #5F65F0 #F05FAD
square
#F0EA5F #5FF0A1 #5F65F0 #F05FAD
split-complementary
#F0EA5F #5FADF0 #A15FF0
monochromatic
#C2BB12 #EBE327 #F0EA5F #F5F197 #FAF9CF

Accessibility & contrast

On white

1.26
#F0EA5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.64
#F0EA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EA5F
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EA5F#FFFFFF#000000##000000
##F0EA5F1.001.2616.6416.64
#FFFFFF1.261.0021.0021.00
#00000016.6421.001.001.00
##00000016.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE24F
Deuteranopia (green-blind)
#FFE767
Tritanopia (blue-blind)
#FFDCCD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f0ea5f;
/* rgb */ color: rgb(240, 234, 95);
/* oklch */ color: oklch(91.6% 0.158 106.8);
Tailwind
colors: {
  custom: {
    50: '#f8f092',
    500: '#f0ea5f',
    950: '#000000',
  },
}
SCSS
$custom: #f0ea5f;
$custom-light: #f8f092;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ea5f",
  "rgb": {
    "r": 240,
    "g": 234,
    "b": 95
  },
  "hsl": {
    "h": 57.517,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.91622,
    "c": 0.1581,
    "h": 106.8
  },
  "luminance": 0.78197
}

Semantic roles & 50–950 ramp

primary
#F0EA5F
secondary
#3339C0
accent
#0FDF06
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F0EA5F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F0EA5F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva