#F0F276#F0F276

#F0F276 is a very light, vivid yellow. Relative luminance 0.833; OKLCH L 93.5% C 0.147 H 109.8°. Best body text is #000000 at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#F0F276
RGBrgb(240, 242, 118)
HSLhsl(61, 83%, 71%)
HSVhsv(61, 51%, 95%)
CMYKcmyk(0.8%, 0%, 51.2%, 5.1%)
CIE-LABlab(93.16, -16.94, 58.82)
CIE-LCHlch(93.16, 61.21, 106.07°)
OKLaboklab(93.52% -0.0496 0.1381)
OKLCHoklch(93.52% 0.147 109.8)
XYZxyz(70.9590, 83.3392, 29.4841)
Luminance0.8334 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F276 #7876F2
analogous
#F2B676 #F0F276 #B2F276
triadic
#F0F276 #76F0F2 #F276F0
tetradic
#F0F276 #76F2B6 #7876F2 #F276B2
square
#F0F276 #76F2B6 #7876F2 #F276B2
split-complementary
#F0F276 #76B2F2 #B676F2
monochromatic
#D6D915 #EAED3E #F0F276 #F6F7AE #FCFCE3

Accessibility & contrast

On white

1.19
#F0F276 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.67
#F0F276 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F276
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F276#FFFFFF#000000##000000
##F0F2761.001.1917.6717.67
#FFFFFF1.191.0021.0021.00
#00000017.6721.001.001.00
##00000017.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96A
Deuteranopia (green-blind)
#FFED7D
Tritanopia (blue-blind)
#FEE5D6
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f0f276;
/* rgb */ color: rgb(240, 242, 118);
/* oklch */ color: oklch(93.5% 0.147 109.8);
Tailwind
colors: {
  custom: {
    50: '#f7f6a1',
    500: '#f0f276',
    950: '#000000',
  },
}
SCSS
$custom: #f0f276;
$custom-light: #f7f6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f276",
  "rgb": {
    "r": 240,
    "g": 242,
    "b": 118
  },
  "hsl": {
    "h": 60.968,
    "s": 82.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.93518,
    "c": 0.14673,
    "h": 109.8
  },
  "luminance": 0.83338
}

Semantic roles & 50–950 ramp

primary
#F0F276
secondary
#4240CC
accent
#06DF0A
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170F
muted
#858580

Preview Lab

Preview with #F0F276

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

Preview Lab → · Contrast checker → · Palette generator →

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