#F2F178#F2F178

#F2F178 is a very light, vivid yellow. Relative luminance 0.831; OKLCH L 93.5% C 0.144 H 108.5°. Best body text is #000000 at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#F2F178
RGBrgb(242, 241, 120)
HSLhsl(60, 82%, 71%)
HSVhsv(60, 50%, 95%)
CMYKcmyk(0%, 0.4%, 50.4%, 5.1%)
CIE-LABlab(93.08, -15.50, 57.85)
CIE-LCHlch(93.08, 59.89, 105.00°)
OKLaboklab(93.49% -0.0454 0.1361)
OKLCHoklch(93.49% 0.144 108.5)
XYZxyz(71.4651, 83.1457, 30.0498)
Luminance0.8314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F178 #7879F2
analogous
#F2B478 #F2F178 #B6F278
triadic
#F2F178 #78F2F1 #F178F2
tetradic
#F2F178 #78F2B4 #7879F2 #F278B6
square
#F2F178 #78F2B4 #7879F2 #F278B6
split-complementary
#F2F178 #78B6F2 #B478F2
monochromatic
#DBD915 #EDEB40 #F2F178 #F7F7B0 #FCFCE3

Accessibility & contrast

On white

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

On black

17.63
#F2F178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F178
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F178#FFFFFF#000000##000000
##F2F1781.001.1917.6317.63
#FFFFFF1.191.0021.0021.00
#00000017.6321.001.001.00
##00000017.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96D
Deuteranopia (green-blind)
#FFED7E
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f178;
/* rgb */ color: rgb(242, 241, 120);
/* oklch */ color: oklch(93.5% 0.144 108.5);
Tailwind
colors: {
  custom: {
    50: '#f9f5a2',
    500: '#f2f178',
    950: '#000000',
  },
}
SCSS
$custom: #f2f178;
$custom-light: #f9f5a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f178",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 120
  },
  "hsl": {
    "h": 59.508,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.93495,
    "c": 0.14352,
    "h": 108.5
  },
  "luminance": 0.83144
}

Semantic roles & 50–950 ramp

primary
#F2F178
secondary
#4243CC
accent
#08DF07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F178

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

Preview Lab → · Contrast checker → · Palette generator →

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