#F2F072#F2F072

#F2F072 is a very light, vivid yellow. Relative luminance 0.824; OKLCH L 93.2% C 0.148 H 108.1°. Best body text is #000000 at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#F2F072
RGBrgb(242, 240, 114)
HSLhsl(59, 83%, 70%)
HSVhsv(59, 53%, 95%)
CMYKcmyk(0%, 0.8%, 52.9%, 5.1%)
CIE-LABlab(92.76, -15.50, 60.19)
CIE-LCHlch(92.76, 62.15, 104.44°)
OKLaboklab(93.22% -0.046 0.1406)
OKLCHoklch(93.22% 0.148 108.1)
XYZxyz(70.8172, 82.4142, 28.0934)
Luminance0.8241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F072 #7274F2
analogous
#F2B072 #F2F072 #B4F272
triadic
#F2F072 #72F2F0 #F072F2
tetradic
#F2F072 #72F2B0 #7274F2 #F272B4
square
#F2F072 #72F2B0 #7274F2 #F272B4
split-complementary
#F2F072 #72B4F2 #B072F2
monochromatic
#D6D314 #EDEA3A #F2F072 #F7F6AA #FCFCE2

Accessibility & contrast

On white

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

On black

17.48
#F2F072 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F072
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F072#FFFFFF#000000##000000
##F2F0721.001.2017.4817.48
#FFFFFF1.201.0021.0021.00
#00000017.4821.001.001.00
##00000017.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE866
Deuteranopia (green-blind)
#FFEC79
Tritanopia (blue-blind)
#FFE3D4
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f2f072;
/* rgb */ color: rgb(242, 240, 114);
/* oklch */ color: oklch(93.2% 0.148 108.1);
Tailwind
colors: {
  custom: {
    50: '#f9f49e',
    500: '#f2f072',
    950: '#000000',
  },
}
SCSS
$custom: #f2f072;
$custom-light: #f9f49e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f072",
  "rgb": {
    "r": 242,
    "g": 240,
    "b": 114
  },
  "hsl": {
    "h": 59.063,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.93219,
    "c": 0.14794,
    "h": 108.1
  },
  "luminance": 0.82412
}

Semantic roles & 50–950 ramp

primary
#F2F072
secondary
#3D3FCC
accent
#09E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F072

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

Preview Lab → · Contrast checker → · Palette generator →

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