#F0F772#F0F772

#F0F772 is a very light, vivid yellow. Relative luminance 0.863; OKLCH L 94.5% C 0.156 H 111.8°. Best body text is #000000 at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#F0F772
RGBrgb(240, 247, 114)
HSLhsl(63, 89%, 71%)
HSVhsv(63, 54%, 97%)
CMYKcmyk(2.8%, 0%, 53.8%, 3.1%)
CIE-LABlab(94.42, -19.68, 62.06)
CIE-LCHlch(94.42, 65.11, 107.59°)
OKLaboklab(94.51% -0.0578 0.1447)
OKLCHoklch(94.51% 0.156 111.8)
XYZxyz(72.2348, 86.2632, 28.7616)
Luminance0.8626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F772 #7972F7
analogous
#F7BB72 #F0F772 #ADF772
triadic
#F0F772 #72F0F7 #F772F0
tetradic
#F0F772 #72F7BB #7972F7 #F772AD
square
#F0F772 #72F7BB #7972F7 #F772AD
split-complementary
#F0F772 #72ADF7 #BB72F7
monochromatic
#D7E20D #EAF438 #F0F772 #F6FAAC #FCFDE2

Accessibility & contrast

On white

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

On black

18.25
#F0F772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F772
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F772#FFFFFF#000000##000000
##F0F7721.001.1518.2518.25
#FFFFFF1.151.0021.0021.00
#00000018.2521.001.001.00
##00000018.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0f772;
/* rgb */ color: rgb(240, 247, 114);
/* oklch */ color: oklch(94.5% 0.156 111.8);
Tailwind
colors: {
  custom: {
    50: '#f7f99e',
    500: '#f0f772',
    950: '#000000',
  },
}
SCSS
$custom: #f0f772;
$custom-light: #f7f99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f772",
  "rgb": {
    "r": 240,
    "g": 247,
    "b": 114
  },
  "hsl": {
    "h": 63.158,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94512,
    "c": 0.15579,
    "h": 111.8
  },
  "luminance": 0.86262
}

Semantic roles & 50–950 ramp

primary
#F0F772
secondary
#433BD2
accent
#00E60C
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#17170F
muted
#858580

Preview Lab

Preview with #F0F772

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

Preview Lab → · Contrast checker → · Palette generator →

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