#F0F262#F0F262

#F0F262 is a very light, vivid yellow. Relative luminance 0.829; OKLCH L 93.3% C 0.164 H 109.9°. Best body text is #000000 at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#F0F262
RGBrgb(240, 242, 98)
HSLhsl(61, 85%, 67%)
HSVhsv(61, 60%, 95%)
CMYKcmyk(0.8%, 0%, 59.5%, 5.1%)
CIE-LABlab(92.98, -18.42, 67.29)
CIE-LCHlch(92.98, 69.76, 105.31°)
OKLaboklab(93.31% -0.0558 0.1539)
OKLCHoklch(93.31% 0.164 109.9)
XYZxyz(69.8939, 82.9132, 23.8749)
Luminance0.8291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F262 #6462F2
analogous
#F2AC62 #F0F262 #A8F262
triadic
#F0F262 #62F0F2 #F262F0
tetradic
#F0F262 #62F2AC #6462F2 #F262A8
square
#F0F262 #62F2AC #6462F2 #F262A8
split-complementary
#F0F262 #62A8F2 #AC62F2
monochromatic
#C6C911 #EBED29 #F0F262 #F5F79B #FBFBD3

Accessibility & contrast

On white

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

On black

17.58
#F0F262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F262
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F262#FFFFFF#000000##000000
##F0F2621.001.1917.5817.58
#FFFFFF1.191.0021.0021.00
#00000017.5821.001.001.00
##00000017.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE851
Deuteranopia (green-blind)
#FFED6B
Tritanopia (blue-blind)
#FFE4D4
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f0f262;
/* rgb */ color: rgb(240, 242, 98);
/* oklch */ color: oklch(93.3% 0.164 109.9);
Tailwind
colors: {
  custom: {
    50: '#f8f694',
    500: '#f0f262',
    950: '#000000',
  },
}
SCSS
$custom: #f0f262;
$custom-light: #f8f694;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f262",
  "rgb": {
    "r": 240,
    "g": 242,
    "b": 98
  },
  "hsl": {
    "h": 60.833,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.93309,
    "c": 0.16376,
    "h": 109.9
  },
  "luminance": 0.82911
}

Semantic roles & 50–950 ramp

primary
#F0F262
secondary
#3533C6
accent
#04E107
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F262

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

Preview Lab → · Contrast checker → · Palette generator →

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