#F2F56A#F2F56A

#F2F56A is a very light, vivid yellow. Relative luminance 0.852; OKLCH L 94.2% C 0.160 H 110.3°. Best body text is #000000 at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#F2F56A
RGBrgb(242, 245, 106)
HSLhsl(61, 87%, 69%)
HSVhsv(61, 57%, 96%)
CMYKcmyk(1.2%, 0%, 56.7%, 3.9%)
CIE-LABlab(93.98, -18.52, 65.07)
CIE-LCHlch(93.98, 67.66, 105.89°)
OKLaboklab(94.17% -0.0554 0.1502)
OKLCHoklch(94.17% 0.16 110.3)
XYZxyz(71.8738, 85.2244, 26.2967)
Luminance0.8522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F56A #6D6AF5
analogous
#F5B36A #F2F56A #ADF56A
triadic
#F2F56A #6AF2F5 #F56AF2
tetradic
#F2F56A #6AF5B3 #6D6AF5 #F56AAD
square
#F2F56A #6AF5B3 #6D6AF5 #F56AAD
split-complementary
#F2F56A #6AADF5 #B36AF5
monochromatic
#D2D60E #EDF131 #F2F56A #F7F9A3 #FCFDDD

Accessibility & contrast

On white

1.16
#F2F56A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.04
#F2F56A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F56A
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F56A#FFFFFF#000000##000000
##F2F56A1.001.1618.0418.04
#FFFFFF1.161.0021.0021.00
#00000018.0421.001.001.00
##00000018.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB5B
Deuteranopia (green-blind)
#FFF072
Tritanopia (blue-blind)
#FFE7D7
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f2f56a;
/* rgb */ color: rgb(242, 245, 106);
/* oklch */ color: oklch(94.2% 0.160 110.3);
Tailwind
colors: {
  custom: {
    50: '#f9f899',
    500: '#f2f56a',
    950: '#000000',
  },
}
SCSS
$custom: #f2f56a;
$custom-light: #f9f899;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f56a",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 106
  },
  "hsl": {
    "h": 61.295,
    "s": 87.421,
    "l": 68.824
  },
  "oklch": {
    "l": 0.94169,
    "c": 0.16009,
    "h": 110.3
  },
  "luminance": 0.85223
}

Semantic roles & 50–950 ramp

primary
#F2F56A
secondary
#3835CE
accent
#02E406
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F56A

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

Preview Lab → · Contrast checker → · Palette generator →

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