#F0F371#F0F371

#F0F371 is a very light, vivid yellow. Relative luminance 0.838; OKLCH L 93.7% C 0.152 H 110.2°. Best body text is #000000 at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#F0F371
RGBrgb(240, 243, 113)
HSLhsl(61, 84%, 70%)
HSVhsv(61, 53%, 95%)
CMYKcmyk(1.2%, 0%, 53.5%, 4.7%)
CIE-LABlab(93.37, -17.83, 61.30)
CIE-LCHlch(93.37, 63.84, 106.22°)
OKLaboklab(93.67% -0.0526 0.1429)
OKLCHoklch(93.67% 0.152 110.2)
XYZxyz(70.9681, 83.8204, 28.0601)
Luminance0.8382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F371 #7471F3
analogous
#F3B571 #F0F371 #AFF371
triadic
#F0F371 #71F0F3 #F371F0
tetradic
#F0F371 #71F3B5 #7471F3 #F371AF
square
#F0F371 #71F3B5 #7471F3 #F371AF
split-complementary
#F0F371 #71AFF3 #B571F3
monochromatic
#D3D712 #EAEE39 #F0F371 #F6F8A9 #FCFDE2

Accessibility & contrast

On white

1.18
#F0F371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.76
#F0F371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F371
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F371#FFFFFF#000000##000000
##F0F3711.001.1817.7617.76
#FFFFFF1.181.0021.0021.00
#00000017.7621.001.001.00
##00000017.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFEE78
Tritanopia (blue-blind)
#FFE6D6
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f0f371;
/* rgb */ color: rgb(240, 243, 113);
/* oklch */ color: oklch(93.7% 0.152 110.2);
Tailwind
colors: {
  custom: {
    50: '#f7f69e',
    500: '#f0f371',
    950: '#000000',
  },
}
SCSS
$custom: #f0f371;
$custom-light: #f7f69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f371",
  "rgb": {
    "r": 240,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 61.385,
    "s": 84.416,
    "l": 69.804
  },
  "oklch": {
    "l": 0.93669,
    "c": 0.15231,
    "h": 110.2
  },
  "luminance": 0.83819
}

Semantic roles & 50–950 ramp

primary
#F0F371
secondary
#3F3BCD
accent
#05E10A
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F0F371

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

Preview Lab → · Contrast checker → · Palette generator →

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