#F0F462#F0F462

#F0F462 is a very light, vivid yellow. Relative luminance 0.841; OKLCH L 93.7% C 0.166 H 110.7°. Best body text is #000000 at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#F0F462
RGBrgb(240, 244, 98)
HSLhsl(62, 87%, 67%)
HSVhsv(62, 60%, 96%)
CMYKcmyk(1.6%, 0%, 59.8%, 4.3%)
CIE-LABlab(93.50, -19.39, 67.85)
CIE-LCHlch(93.50, 70.57, 105.94°)
OKLaboklab(93.73% -0.0586 0.1551)
OKLCHoklch(93.73% 0.166 110.7)
XYZxyz(70.4925, 84.1102, 24.0744)
Luminance0.8411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F462 #6662F4
analogous
#F4AF62 #F0F462 #A7F462
triadic
#F0F462 #62F0F4 #F462F0
tetradic
#F0F462 #62F4AF #6662F4 #F462A7
square
#F0F462 #62F4AF #6662F4 #F462A7
split-complementary
#F0F462 #62A7F4 #AF62F4
monochromatic
#C8CD0E #EBF029 #F0F462 #F5F89B #FBFCD4

Accessibility & contrast

On white

1.18
#F0F462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.82
#F0F462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F462
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F462#FFFFFF#000000##000000
##F0F4621.001.1817.8217.82
#FFFFFF1.181.0021.0021.00
#00000017.8221.001.001.00
##00000017.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA51
Deuteranopia (green-blind)
#FFEE6B
Tritanopia (blue-blind)
#FFE6D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f0f462;
/* rgb */ color: rgb(240, 244, 98);
/* oklch */ color: oklch(93.7% 0.166 110.7);
Tailwind
colors: {
  custom: {
    50: '#f8f794',
    500: '#f0f462',
    950: '#000000',
  },
}
SCSS
$custom: #f0f462;
$custom-light: #f8f794;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f462",
  "rgb": {
    "r": 240,
    "g": 244,
    "b": 98
  },
  "hsl": {
    "h": 61.644,
    "s": 86.905,
    "l": 67.059
  },
  "oklch": {
    "l": 0.93726,
    "c": 0.16583,
    "h": 110.7
  },
  "luminance": 0.84108
}

Semantic roles & 50–950 ramp

primary
#F0F462
secondary
#3531C9
accent
#02E308
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F462

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

Preview Lab → · Contrast checker → · Palette generator →

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