#F2F17C#F2F17C

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

Color values

HEX#F2F17C
RGBrgb(242, 241, 124)
HSLhsl(59, 82%, 72%)
HSVhsv(59, 49%, 95%)
CMYKcmyk(0%, 0.4%, 48.8%, 5.1%)
CIE-LABlab(93.12, -15.16, 56.07)
CIE-LCHlch(93.12, 58.08, 105.13°)
OKLaboklab(93.54% -0.0441 0.1326)
OKLCHoklch(93.54% 0.14 108.4)
XYZxyz(71.7130, 83.2448, 31.3551)
Luminance0.8324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F17C #7C7DF2
analogous
#F2B67C #F2F17C #B8F27C
triadic
#F2F17C #7CF2F1 #F17CF2
tetradic
#F2F17C #7CF2B6 #7C7DF2 #F27CB8
square
#F2F17C #7CF2B6 #7C7DF2 #F27CB8
split-complementary
#F2F17C #7CB8F2 #B67CF2
monochromatic
#DEDC16 #ECEB44 #F2F17C #F8F7B4 #FCFCE3

Accessibility & contrast

On white

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

On black

17.65
#F2F17C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F17C
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F17C#FFFFFF#000000##000000
##F2F17C1.001.1917.6517.65
#FFFFFF1.191.0021.0021.00
#00000017.6521.001.001.00
##00000017.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f17c;
/* rgb */ color: rgb(242, 241, 124);
/* oklch */ color: oklch(93.5% 0.140 108.4);
Tailwind
colors: {
  custom: {
    50: '#f8f5a4',
    500: '#f2f17c',
    950: '#000000',
  },
}
SCSS
$custom: #f2f17c;
$custom-light: #f8f5a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f17c",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 124
  },
  "hsl": {
    "h": 59.492,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.93543,
    "c": 0.13974,
    "h": 108.4
  },
  "luminance": 0.83243
}

Semantic roles & 50–950 ramp

primary
#F2F17C
secondary
#4547CD
accent
#09DE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F17C

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

Preview Lab → · Contrast checker → · Palette generator →

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