#F2F07D#F2F07D

#F2F07D is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.3% C 0.138 H 107.9°. Best body text is #000000 at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#F2F07D
RGBrgb(242, 240, 125)
HSLhsl(59, 82%, 72%)
HSVhsv(59, 48%, 95%)
CMYKcmyk(0%, 0.8%, 48.3%, 5.1%)
CIE-LABlab(92.87, -14.59, 55.31)
CIE-LCHlch(92.87, 57.20, 104.78°)
OKLaboklab(93.35% -0.0423 0.131)
OKLCHoklch(93.35% 0.138 107.9)
XYZxyz(71.4814, 82.6799, 31.5914)
Luminance0.8268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F07D #7D7FF2
analogous
#F2B57D #F2F07D #BAF27D
triadic
#F2F07D #7DF2F0 #F07DF2
tetradic
#F2F07D #7DF2B5 #7D7FF2 #F27DBA
square
#F2F07D #7DF2B5 #7D7FF2 #F27DBA
split-complementary
#F2F07D #7DBAF2 #B57DF2
monochromatic
#DEDB16 #ECEA45 #F2F07D #F8F6B5 #FCFCE3

Accessibility & contrast

On white

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

On black

17.54
#F2F07D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F07D
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F07D#FFFFFF#000000##000000
##F2F07D1.001.2017.5417.54
#FFFFFF1.201.0021.0021.00
#00000017.5421.001.001.00
##00000017.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE873
Deuteranopia (green-blind)
#FFED83
Tritanopia (blue-blind)
#FFE3D6
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f07d;
/* rgb */ color: rgb(242, 240, 125);
/* oklch */ color: oklch(93.3% 0.138 107.9);
Tailwind
colors: {
  custom: {
    50: '#f8f4a5',
    500: '#f2f07d',
    950: '#000000',
  },
}
SCSS
$custom: #f2f07d;
$custom-light: #f8f4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f07d",
  "rgb": {
    "r": 242,
    "g": 240,
    "b": 125
  },
  "hsl": {
    "h": 58.974,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.9335,
    "c": 0.1377,
    "h": 107.9
  },
  "luminance": 0.82678
}

Semantic roles & 50–950 ramp

primary
#F2F07D
secondary
#4649CD
accent
#0BDE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#17170F
muted
#858580

Preview Lab

Preview with #F2F07D

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

Preview Lab → · Contrast checker → · Palette generator →

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