#F0F671#F0F671

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

Color values

HEX#F0F671
RGBrgb(240, 246, 113)
HSLhsl(63, 88%, 70%)
HSVhsv(63, 54%, 96%)
CMYKcmyk(2.4%, 0%, 54.1%, 3.5%)
CIE-LABlab(94.15, -19.28, 62.19)
CIE-LCHlch(94.15, 65.11, 107.22°)
OKLaboklab(94.29% -0.0567 0.1449)
OKLCHoklch(94.29% 0.156 111.4)
XYZxyz(71.8733, 85.6306, 28.3618)
Luminance0.8563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F671 #7771F6
analogous
#F6BA71 #F0F671 #ADF671
triadic
#F0F671 #71F0F6 #F671F0
tetradic
#F0F671 #71F6BA #7771F6 #F671AD
square
#F0F671 #71F6BA #7771F6 #F671AD
split-complementary
#F0F671 #71ADF6 #BA71F6
monochromatic
#D5DE0E #EAF237 #F0F671 #F6FAAB #FCFDE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0F671#FFFFFF#000000##000000
##F0F6711.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)
#FFEC63
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FEE9D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f0f671;
/* rgb */ color: rgb(240, 246, 113);
/* oklch */ color: oklch(94.3% 0.156 111.4);
Tailwind
colors: {
  custom: {
    50: '#f7f99e',
    500: '#f0f671',
    950: '#000000',
  },
}
SCSS
$custom: #f0f671;
$custom-light: #f7f99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f671",
  "rgb": {
    "r": 240,
    "g": 246,
    "b": 113
  },
  "hsl": {
    "h": 62.707,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.94293,
    "c": 0.15557,
    "h": 111.4
  },
  "luminance": 0.85629
}

Semantic roles & 50–950 ramp

primary
#F0F671
secondary
#423BD0
accent
#01E50B
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F0F671

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

Preview Lab → · Contrast checker → · Palette generator →

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