#F0F970#F0F970

#F0F970 is a very light, vivid yellow. Relative luminance 0.874; OKLCH L 94.9% C 0.160 H 112.5°. Best body text is #000000 at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#F0F970
RGBrgb(240, 249, 112)
HSLhsl(64, 92%, 71%)
HSVhsv(64, 55%, 98%)
CMYKcmyk(3.6%, 0%, 55%, 2.4%)
CIE-LABlab(94.93, -20.79, 63.51)
CIE-LCHlch(94.93, 66.83, 108.13°)
OKLaboklab(94.91% -0.0611 0.1476)
OKLCHoklch(94.91% 0.16 112.5)
XYZxyz(72.7371, 87.4479, 28.3735)
Luminance0.8745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F970 #7970F9
analogous
#F9BE70 #F0F970 #ABF970
triadic
#F0F970 #70F0F9 #F970F0
tetradic
#F0F970 #70F9BE #7970F9 #F970AB
square
#F0F970 #70F9BE #7970F9 #F970AB
split-complementary
#F0F970 #70ABF9 #BE70F9
monochromatic
#D7E50A #EAF735 #F0F970 #F6FBAB #FCFEE2

Accessibility & contrast

On white

1.14
#F0F970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.49
#F0F970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F970
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F970#FFFFFF#000000##000000
##F0F9701.001.1418.4918.49
#FFFFFF1.141.0021.0021.00
#00000018.4921.001.001.00
##00000018.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF62
Deuteranopia (green-blind)
#FFF278
Tritanopia (blue-blind)
#FEECDB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f0f970;
/* rgb */ color: rgb(240, 249, 112);
/* oklch */ color: oklch(94.9% 0.160 112.5);
Tailwind
colors: {
  custom: {
    50: '#f7fb9d',
    500: '#f0f970',
    950: '#000000',
  },
}
SCSS
$custom: #f0f970;
$custom-light: #f7fb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f970",
  "rgb": {
    "r": 240,
    "g": 249,
    "b": 112
  },
  "hsl": {
    "h": 63.942,
    "s": 91.946,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94908,
    "c": 0.15973,
    "h": 112.5
  },
  "luminance": 0.87446
}

Semantic roles & 50–950 ramp

primary
#F0F970
secondary
#4339D4
accent
#00E60F
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F0F970

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

Preview Lab → · Contrast checker → · Palette generator →

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