#F2F170#F2F170

#F2F170 is a very light, vivid yellow. Relative luminance 0.830; OKLCH L 93.4% C 0.151 H 108.6°. Best body text is #000000 at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#F2F170
RGBrgb(242, 241, 112)
HSLhsl(60, 83%, 69%)
HSVhsv(60, 54%, 95%)
CMYKcmyk(0%, 0.4%, 53.7%, 5.1%)
CIE-LABlab(93.00, -16.14, 61.35)
CIE-LCHlch(93.00, 63.44, 104.74°)
OKLaboklab(93.4% -0.0481 0.1429)
OKLCHoklch(93.4% 0.151 108.6)
XYZxyz(70.9998, 82.9596, 27.5988)
Luminance0.8296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F170 #7071F2
analogous
#F2B070 #F2F170 #B2F270
triadic
#F2F170 #70F2F1 #F170F2
tetradic
#F2F170 #70F2B0 #7071F2 #F270B2
square
#F2F170 #70F2B0 #7071F2 #F270B2
split-complementary
#F2F170 #70B2F2 #B070F2
monochromatic
#D4D313 #EDEC38 #F2F170 #F7F6A8 #FCFCE0

Accessibility & contrast

On white

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

On black

17.59
#F2F170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F170
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F170#FFFFFF#000000##000000
##F2F1701.001.1917.5917.59
#FFFFFF1.191.0021.0021.00
#00000017.5921.001.001.00
##00000017.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE863
Deuteranopia (green-blind)
#FFED77
Tritanopia (blue-blind)
#FFE4D4
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f170;
/* rgb */ color: rgb(242, 241, 112);
/* oklch */ color: oklch(93.4% 0.151 108.6);
Tailwind
colors: {
  custom: {
    50: '#f9f59d',
    500: '#f2f170',
    950: '#000000',
  },
}
SCSS
$custom: #f2f170;
$custom-light: #f9f59d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f170",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 112
  },
  "hsl": {
    "h": 59.538,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.93404,
    "c": 0.15077,
    "h": 108.6
  },
  "luminance": 0.82958
}

Semantic roles & 50–950 ramp

primary
#F2F170
secondary
#3B3CCB
accent
#07E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F170

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

Preview Lab → · Contrast checker → · Palette generator →

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