#F0ED5C#F0ED5C

#F0ED5C is a very light, vivid yellow. Relative luminance 0.799; OKLCH L 92.2% C 0.163 H 108.1°. Best body text is #000000 at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#F0ED5C
RGBrgb(240, 237, 92)
HSLhsl(59, 83%, 65%)
HSVhsv(59, 62%, 94%)
CMYKcmyk(0%, 1.2%, 61.7%, 5.9%)
CIE-LABlab(91.63, -16.38, 68.29)
CIE-LCHlch(91.63, 70.23, 103.48°)
OKLaboklab(92.22% -0.0507 0.1553)
OKLCHoklch(92.22% 0.163 108.1)
XYZxyz(68.1534, 79.8684, 21.9492)
Luminance0.7987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0ED5C #5C5FF0
analogous
#F0A35C #F0ED5C #A9F05C
triadic
#F0ED5C #5CF0ED #ED5CF0
tetradic
#F0ED5C #5CF0A3 #5C5FF0 #F05CA9
square
#F0ED5C #5CF0A3 #5C5FF0 #F05CA9
split-complementary
#F0ED5C #5CA9F0 #A35CF0
monochromatic
#C0BC12 #EBE724 #F0ED5C #F5F394 #FAF9CC

Accessibility & contrast

On white

1.24
#F0ED5C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.97
#F0ED5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0ED5C
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0ED5C#FFFFFF#000000##000000
##F0ED5C1.001.2416.9716.97
#FFFFFF1.241.0021.0021.00
#00000016.9721.001.001.00
##00000016.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE44A
Deuteranopia (green-blind)
#FFE965
Tritanopia (blue-blind)
#FFDFCF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f0ed5c;
/* rgb */ color: rgb(240, 237, 92);
/* oklch */ color: oklch(92.2% 0.163 108.1);
Tailwind
colors: {
  custom: {
    50: '#f8f290',
    500: '#f0ed5c',
    950: '#000000',
  },
}
SCSS
$custom: #f0ed5c;
$custom-light: #f8f290;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ed5c",
  "rgb": {
    "r": 240,
    "g": 237,
    "b": 92
  },
  "hsl": {
    "h": 58.784,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.92216,
    "c": 0.16333,
    "h": 108.1
  },
  "luminance": 0.79866
}

Semantic roles & 50–950 ramp

primary
#F0ED5C
secondary
#3235BE
accent
#0AE006
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F0ED5C

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

Preview Lab → · Contrast checker → · Palette generator →

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