#F0F271#F0F271

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

Color values

HEX#F0F271
RGBrgb(240, 242, 113)
HSLhsl(61, 83%, 70%)
HSVhsv(61, 53%, 95%)
CMYKcmyk(0.8%, 0%, 53.3%, 5.1%)
CIE-LABlab(93.11, -17.34, 61.00)
CIE-LCHlch(93.11, 63.42, 105.87°)
OKLaboklab(93.46% -0.0513 0.1423)
OKLCHoklch(93.46% 0.151 109.8)
XYZxyz(70.6697, 83.2235, 27.9606)
Luminance0.8322 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F271 #7371F2
analogous
#F2B371 #F0F271 #B0F271
triadic
#F0F271 #71F0F2 #F271F0
tetradic
#F0F271 #71F2B3 #7371F2 #F271B0
square
#F0F271 #71F2B3 #7371F2 #F271B0
split-complementary
#F0F271 #71B0F2 #B371F2
monochromatic
#D2D514 #EAED39 #F0F271 #F6F7A9 #FCFCE1

Accessibility & contrast

On white

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

On black

17.64
#F0F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F271
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F271#FFFFFF#000000##000000
##F0F2711.001.1917.6417.64
#FFFFFF1.191.0021.0021.00
#00000017.6421.001.001.00
##00000017.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE964
Deuteranopia (green-blind)
#FFED78
Tritanopia (blue-blind)
#FFE5D5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f0f271;
/* rgb */ color: rgb(240, 242, 113);
/* oklch */ color: oklch(93.5% 0.151 109.8);
Tailwind
colors: {
  custom: {
    50: '#f7f69d',
    500: '#f0f271',
    950: '#000000',
  },
}
SCSS
$custom: #f0f271;
$custom-light: #f7f69d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f271",
  "rgb": {
    "r": 240,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 60.93,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.93461,
    "c": 0.15124,
    "h": 109.8
  },
  "luminance": 0.83222
}

Semantic roles & 50–950 ramp

primary
#F0F271
secondary
#3E3CCB
accent
#06E009
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F0F271

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

Preview Lab → · Contrast checker → · Palette generator →

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