#F2F17A#F2F17A

#F2F17A is a very light, vivid yellow. Relative luminance 0.832; OKLCH L 93.5% C 0.142 H 108.4°. Best body text is #000000 at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#F2F17A
RGBrgb(242, 241, 122)
HSLhsl(60, 82%, 71%)
HSVhsv(60, 50%, 95%)
CMYKcmyk(0%, 0.4%, 49.6%, 5.1%)
CIE-LABlab(93.10, -15.34, 56.96)
CIE-LCHlch(93.10, 58.99, 105.07°)
OKLaboklab(93.52% -0.0447 0.1344)
OKLCHoklch(93.52% 0.142 108.4)
XYZxyz(71.5878, 83.1948, 30.6957)
Luminance0.8319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F17A #7A7BF2
analogous
#F2B57A #F2F17A #B7F27A
triadic
#F2F17A #7AF2F1 #F17AF2
tetradic
#F2F17A #7AF2B5 #7A7BF2 #F27AB7
square
#F2F17A #7AF2B5 #7A7BF2 #F27AB7
split-complementary
#F2F17A #7AB7F2 #B57AF2
monochromatic
#DCDA16 #EDEB42 #F2F17A #F7F7B2 #FCFCE3

Accessibility & contrast

On white

1.19
#F2F17A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.64
#F2F17A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F17A
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F17A#FFFFFF#000000##000000
##F2F17A1.001.1917.6417.64
#FFFFFF1.191.0021.0021.00
#00000017.6421.001.001.00
##00000017.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96F
Deuteranopia (green-blind)
#FFED80
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f17a;
/* rgb */ color: rgb(242, 241, 122);
/* oklch */ color: oklch(93.5% 0.142 108.4);
Tailwind
colors: {
  custom: {
    50: '#f8f5a3',
    500: '#f2f17a',
    950: '#000000',
  },
}
SCSS
$custom: #f2f17a;
$custom-light: #f8f5a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f17a",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 122
  },
  "hsl": {
    "h": 59.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.93519,
    "c": 0.14164,
    "h": 108.4
  },
  "luminance": 0.83193
}

Semantic roles & 50–950 ramp

primary
#F2F17A
secondary
#4445CD
accent
#09DF07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F17A

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

Preview Lab → · Contrast checker → · Palette generator →

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