#F2F256#F2F256

#F2F256 is a very light, vivid yellow. Relative luminance 0.831; OKLCH L 93.4% C 0.172 H 109.3°. Best body text is #000000 at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#F2F256
RGBrgb(242, 242, 86)
HSLhsl(60, 86%, 64%)
HSVhsv(60, 64%, 95%)
CMYKcmyk(0%, 0%, 64.5%, 5.1%)
CIE-LABlab(93.04, -18.35, 72.18)
CIE-LCHlch(93.04, 74.48, 104.26°)
OKLaboklab(93.37% -0.057 0.1625)
OKLCHoklch(93.37% 0.172 109.3)
XYZxyz(70.0521, 83.0554, 21.1435)
Luminance0.8305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F256 #5656F2
analogous
#F2A456 #F2F256 #A4F256
triadic
#F2F256 #56F2F2 #F256F2
tetradic
#F2F256 #56F2A4 #5656F2 #F256A4
square
#F2F256 #56F2A4 #5656F2 #F256A4
split-complementary
#F2F256 #56A4F2 #A456F2
monochromatic
#BFBF0F #EEEE1D #F2F256 #F6F68F #FBFBC8

Accessibility & contrast

On white

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

On black

17.61
#F2F256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F256
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F256#FFFFFF#000000##000000
##F2F2561.001.1917.6117.61
#FFFFFF1.191.0021.0021.00
#00000017.6121.001.001.00
##00000017.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE840
Deuteranopia (green-blind)
#FFED60
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f256;
/* rgb */ color: rgb(242, 242, 86);
/* oklch */ color: oklch(93.4% 0.172 109.3);
Tailwind
colors: {
  custom: {
    50: '#faf68d',
    500: '#f2f256',
    950: '#000000',
  },
}
SCSS
$custom: #f2f256;
$custom-light: #faf68d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f256",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 86
  },
  "hsl": {
    "h": 60,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.93367,
    "c": 0.17224,
    "h": 109.3
  },
  "luminance": 0.83053
}

Semantic roles & 50–950 ramp

primary
#F2F256
secondary
#2F2FBD
accent
#03E203
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F2F256

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

Preview Lab → · Contrast checker → · Palette generator →

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