#F0F672#F0F672

#F0F672 is a very light, vivid yellow. Relative luminance 0.857; OKLCH L 94.3% C 0.155 H 111.4°. Best body text is #000000 at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#F0F672
RGBrgb(240, 246, 114)
HSLhsl(63, 88%, 71%)
HSVhsv(63, 54%, 96%)
CMYKcmyk(2.4%, 0%, 53.7%, 3.5%)
CIE-LABlab(94.16, -19.20, 61.76)
CIE-LCHlch(94.16, 64.68, 107.27°)
OKLaboklab(94.3% -0.0564 0.144)
OKLCHoklch(94.3% 0.155 111.4)
XYZxyz(71.9299, 85.6532, 28.6599)
Luminance0.8565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F672 #7872F6
analogous
#F6BA72 #F0F672 #AEF672
triadic
#F0F672 #72F0F6 #F672F0
tetradic
#F0F672 #72F6BA #7872F6 #F672AE
square
#F0F672 #72F6BA #7872F6 #F672AE
split-complementary
#F0F672 #72AEF6 #BA72F6
monochromatic
#D6DF0E #EAF238 #F0F672 #F6FAAC #FCFDE2

Accessibility & contrast

On white

1.16
#F0F672 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.13
#F0F672 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F672
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F672#FFFFFF#000000##000000
##F0F6721.001.1618.1318.13
#FFFFFF1.161.0021.0021.00
#00000018.1321.001.001.00
##00000018.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC65
Deuteranopia (green-blind)
#FFF079
Tritanopia (blue-blind)
#FEE9D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f0f672;
/* rgb */ color: rgb(240, 246, 114);
/* oklch */ color: oklch(94.3% 0.155 111.4);
Tailwind
colors: {
  custom: {
    50: '#f7f99e',
    500: '#f0f672',
    950: '#000000',
  },
}
SCSS
$custom: #f0f672;
$custom-light: #f7f99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f672",
  "rgb": {
    "r": 240,
    "g": 246,
    "b": 114
  },
  "hsl": {
    "h": 62.727,
    "s": 88,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94303,
    "c": 0.15469,
    "h": 111.4
  },
  "luminance": 0.85652
}

Semantic roles & 50–950 ramp

primary
#F0F672
secondary
#423CD1
accent
#01E50B
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #F0F672

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

Preview Lab → · Contrast checker → · Palette generator →

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