#F2F672#F2F672

#F2F672 is a very light, vivid yellow. Relative luminance 0.860; OKLCH L 94.5% C 0.154 H 110.6°. Best body text is #000000 at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#F2F672
RGBrgb(242, 246, 114)
HSLhsl(62, 88%, 71%)
HSVhsv(62, 54%, 96%)
CMYKcmyk(1.6%, 0%, 53.7%, 3.5%)
CIE-LABlab(94.31, -18.41, 61.98)
CIE-LCHlch(94.31, 64.65, 106.55°)
OKLaboklab(94.46% -0.0543 0.1445)
OKLCHoklch(94.46% 0.154 110.6)
XYZxyz(72.6127, 86.0053, 28.6919)
Luminance0.8600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F672 #7672F6
analogous
#F6B872 #F2F672 #B0F672
triadic
#F2F672 #72F2F6 #F672F2
tetradic
#F2F672 #72F6B8 #7672F6 #F672B0
square
#F2F672 #72F6B8 #7672F6 #F672B0
split-complementary
#F2F672 #72B0F6 #B872F6
monochromatic
#D9DF0E #EDF238 #F2F672 #F7FAAC #FCFDE2

Accessibility & contrast

On white

1.15
#F2F672 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.20
#F2F672 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F672
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F672#FFFFFF#000000##000000
##F2F6721.001.1518.2018.20
#FFFFFF1.151.0021.0021.00
#00000018.2021.001.001.00
##00000018.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED65
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FFE9D9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f2f672;
/* rgb */ color: rgb(242, 246, 114);
/* oklch */ color: oklch(94.5% 0.154 110.6);
Tailwind
colors: {
  custom: {
    50: '#f9f99e',
    500: '#f2f672',
    950: '#000000',
  },
}
SCSS
$custom: #f2f672;
$custom-light: #f9f99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f672",
  "rgb": {
    "r": 242,
    "g": 246,
    "b": 114
  },
  "hsl": {
    "h": 61.818,
    "s": 88,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94461,
    "c": 0.15432,
    "h": 110.6
  },
  "luminance": 0.86004
}

Semantic roles & 50–950 ramp

primary
#F2F672
secondary
#403CD1
accent
#01E508
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F672

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

Preview Lab → · Contrast checker → · Palette generator →

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