#F2F971#F2F971

#F2F971 is a very light, vivid yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.158 H 111.8°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#F2F971
RGBrgb(242, 249, 113)
HSLhsl(63, 92%, 71%)
HSVhsv(63, 55%, 98%)
CMYKcmyk(2.8%, 0%, 54.6%, 2.4%)
CIE-LABlab(95.09, -19.93, 63.29)
CIE-LCHlch(95.09, 66.36, 107.48°)
OKLaboklab(95.07% -0.0587 0.1472)
OKLCHoklch(95.07% 0.158 111.8)
XYZxyz(73.4760, 87.8224, 28.7004)
Luminance0.8782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F971 #7871F9
analogous
#F9BC71 #F2F971 #AEF971
triadic
#F2F971 #71F2F9 #F971F2
tetradic
#F2F971 #71F9BC #7871F9 #F971AE
square
#F2F971 #71F9BC #7871F9 #F971AE
split-complementary
#F2F971 #71AEF9 #BC71F9
monochromatic
#DBE60A #EDF736 #F2F971 #F7FBAC #FCFEE2

Accessibility & contrast

On white

1.13
#F2F971 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.56
#F2F971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F971
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F971#FFFFFF#000000##000000
##F2F9711.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF63
Deuteranopia (green-blind)
#FFF379
Tritanopia (blue-blind)
#FFECDB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f971;
/* rgb */ color: rgb(242, 249, 113);
/* oklch */ color: oklch(95.1% 0.158 111.8);
Tailwind
colors: {
  custom: {
    50: '#f9fb9e',
    500: '#f2f971',
    950: '#000000',
  },
}
SCSS
$custom: #f2f971;
$custom-light: #f9fb9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f971",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 113
  },
  "hsl": {
    "h": 63.088,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.95073,
    "c": 0.15845,
    "h": 111.8
  },
  "luminance": 0.87821
}

Semantic roles & 50–950 ramp

primary
#F2F971
secondary
#423AD4
accent
#00E60C
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F971

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

Preview Lab → · Contrast checker → · Palette generator →

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