#F0F162#F0F162

#F0F162 is a very light, vivid yellow. Relative luminance 0.823; OKLCH L 93.1% C 0.163 H 109.6°. Best body text is #000000 at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#F0F162
RGBrgb(240, 241, 98)
HSLhsl(60, 84%, 66%)
HSVhsv(60, 59%, 95%)
CMYKcmyk(0.4%, 0%, 59.3%, 5.5%)
CIE-LABlab(92.72, -17.94, 67.00)
CIE-LCHlch(92.72, 69.36, 104.99°)
OKLaboklab(93.1% -0.0545 0.1533)
OKLCHoklch(93.1% 0.163 109.6)
XYZxyz(69.5971, 82.3195, 23.7760)
Luminance0.8232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F162 #6362F1
analogous
#F1AB62 #F0F162 #A9F162
triadic
#F0F162 #62F0F1 #F162F0
tetradic
#F0F162 #62F1AB #6362F1 #F162A9
square
#F0F162 #62F1AB #6362F1 #F162A9
split-complementary
#F0F162 #62A9F1 #AB62F1
monochromatic
#C6C712 #EBEC2A #F0F162 #F5F69A #FBFBD2

Accessibility & contrast

On white

1.20
#F0F162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.46
#F0F162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F162
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F162#FFFFFF#000000##000000
##F0F1621.001.2017.4617.46
#FFFFFF1.201.0021.0021.00
#00000017.4621.001.001.00
##00000017.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE851
Deuteranopia (green-blind)
#FFEC6B
Tritanopia (blue-blind)
#FFE3D3
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f0f162;
/* rgb */ color: rgb(240, 241, 98);
/* oklch */ color: oklch(93.1% 0.163 109.6);
Tailwind
colors: {
  custom: {
    50: '#f8f594',
    500: '#f0f162',
    950: '#000000',
  },
}
SCSS
$custom: #f0f162;
$custom-light: #f8f594;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f162",
  "rgb": {
    "r": 240,
    "g": 241,
    "b": 98
  },
  "hsl": {
    "h": 60.42,
    "s": 83.626,
    "l": 66.471
  },
  "oklch": {
    "l": 0.93101,
    "c": 0.16273,
    "h": 109.6
  },
  "luminance": 0.82318
}

Semantic roles & 50–950 ramp

primary
#F0F162
secondary
#3433C4
accent
#05E007
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F162

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

Preview Lab → · Contrast checker → · Palette generator →

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