#F2F974#F2F974

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

Color values

HEX#F2F974
RGBrgb(242, 249, 116)
HSLhsl(63, 92%, 72%)
HSVhsv(63, 53%, 98%)
CMYKcmyk(2.8%, 0%, 53.4%, 2.4%)
CIE-LABlab(95.12, -19.70, 62.01)
CIE-LCHlch(95.12, 65.06, 107.62°)
OKLaboklab(95.11% -0.0578 0.1447)
OKLCHoklch(95.11% 0.156 111.8)
XYZxyz(73.6477, 87.8911, 29.6047)
Luminance0.8789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F974 #7B74F9
analogous
#F9BE74 #F2F974 #B0F974
triadic
#F2F974 #74F2F9 #F974F2
tetradic
#F2F974 #74F9BE #7B74F9 #F974B0
square
#F2F974 #74F9BE #7B74F9 #F974B0
split-complementary
#F2F974 #74B0F9 #BE74F9
monochromatic
#DDE90A #EDF639 #F2F974 #F7FCAF #FCFEE2

Accessibility & contrast

On white

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

On black

18.58
#F2F974 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F974
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F974#FFFFFF#000000##000000
##F2F9741.001.1318.5818.58
#FFFFFF1.131.0021.0021.00
#00000018.5821.001.001.00
##00000018.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF67
Deuteranopia (green-blind)
#FFF37B
Tritanopia (blue-blind)
#FFECDC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f974;
/* rgb */ color: rgb(242, 249, 116);
/* oklch */ color: oklch(95.1% 0.156 111.8);
Tailwind
colors: {
  custom: {
    50: '#f9fba0',
    500: '#f2f974',
    950: '#000000',
  },
}
SCSS
$custom: #f2f974;
$custom-light: #f9fba0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f974",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 116
  },
  "hsl": {
    "h": 63.158,
    "s": 91.724,
    "l": 71.569
  },
  "oklch": {
    "l": 0.95106,
    "c": 0.15583,
    "h": 111.8
  },
  "luminance": 0.8789
}

Semantic roles & 50–950 ramp

primary
#F2F974
secondary
#453DD5
accent
#00E60C
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F974

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

Preview Lab → · Contrast checker → · Palette generator →

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