#F2F056#F2F056

#F2F056 is a very light, vivid yellow. Relative luminance 0.819; OKLCH L 93.0% C 0.170 H 108.6°. Best body text is #000000 at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#F2F056
RGBrgb(242, 240, 86)
HSLhsl(59, 86%, 64%)
HSVhsv(59, 64%, 95%)
CMYKcmyk(0%, 0.8%, 64.5%, 5.1%)
CIE-LABlab(92.52, -17.38, 71.65)
CIE-LCHlch(92.52, 73.72, 103.64°)
OKLaboklab(92.95% -0.0542 0.1614)
OKLCHoklch(92.95% 0.17 108.6)
XYZxyz(69.4601, 81.8714, 20.9461)
Luminance0.8187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F056 #5658F2
analogous
#F2A256 #F2F056 #A6F256
triadic
#F2F056 #56F2F0 #F056F2
tetradic
#F2F056 #56F2A2 #5658F2 #F256A6
square
#F2F056 #56F2A2 #5658F2 #F256A6
split-complementary
#F2F056 #56A6F2 #A256F2
monochromatic
#BFBD0F #EEEB1D #F2F056 #F6F58F #FBFAC8

Accessibility & contrast

On white

1.21
#F2F056 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.37
#F2F056 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F056
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F056#FFFFFF#000000##000000
##F2F0561.001.2117.3717.37
#FFFFFF1.211.0021.0021.00
#00000017.3721.001.001.00
##00000017.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE741
Deuteranopia (green-blind)
#FFEC60
Tritanopia (blue-blind)
#FFE1D1
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2f056;
/* rgb */ color: rgb(242, 240, 86);
/* oklch */ color: oklch(93.0% 0.170 108.6);
Tailwind
colors: {
  custom: {
    50: '#faf48d',
    500: '#f2f056',
    950: '#000000',
  },
}
SCSS
$custom: #f2f056;
$custom-light: #faf48d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f056",
  "rgb": {
    "r": 242,
    "g": 240,
    "b": 86
  },
  "hsl": {
    "h": 59.231,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.92952,
    "c": 0.17028,
    "h": 108.6
  },
  "luminance": 0.81869
}

Semantic roles & 50–950 ramp

primary
#F2F056
secondary
#2F31BD
accent
#06E203
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F2F056

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

Preview Lab → · Contrast checker → · Palette generator →

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