#F2F56C#F2F56C

#F2F56C is a very light, vivid yellow. Relative luminance 0.853; OKLCH L 94.2% C 0.158 H 110.2°. Best body text is #000000 at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#F2F56C
RGBrgb(242, 245, 108)
HSLhsl(61, 87%, 69%)
HSVhsv(61, 56%, 96%)
CMYKcmyk(1.2%, 0%, 55.9%, 3.9%)
CIE-LABlab(94.00, -18.38, 64.23)
CIE-LCHlch(94.00, 66.81, 105.97°)
OKLaboklab(94.19% -0.0548 0.1486)
OKLCHoklch(94.19% 0.158 110.2)
XYZxyz(71.9790, 85.2665, 26.8508)
Luminance0.8527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F56C #6F6CF5
analogous
#F5B46C #F2F56C #AEF56C
triadic
#F2F56C #6CF2F5 #F56CF2
tetradic
#F2F56C #6CF5B4 #6F6CF5 #F56CAE
square
#F2F56C #6CF5B4 #6F6CF5 #F56CAE
split-complementary
#F2F56C #6CAEF5 #B46CF5
monochromatic
#D4D80F #EDF133 #F2F56C #F7F9A5 #FCFDDF

Accessibility & contrast

On white

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

On black

18.05
#F2F56C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F56C
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F56C#FFFFFF#000000##000000
##F2F56C1.001.1618.0518.05
#FFFFFF1.161.0021.0021.00
#00000018.0521.001.001.00
##00000018.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f56c;
/* rgb */ color: rgb(242, 245, 108);
/* oklch */ color: oklch(94.2% 0.158 110.2);
Tailwind
colors: {
  custom: {
    50: '#f9f89b',
    500: '#f2f56c',
    950: '#000000',
  },
}
SCSS
$custom: #f2f56c;
$custom-light: #f9f89b;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f56c",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 108
  },
  "hsl": {
    "h": 61.314,
    "s": 87.261,
    "l": 69.216
  },
  "oklch": {
    "l": 0.9419,
    "c": 0.15842,
    "h": 110.2
  },
  "luminance": 0.85265
}

Semantic roles & 50–950 ramp

primary
#F2F56C
secondary
#3A37CF
accent
#02E407
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F56C

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

Preview Lab → · Contrast checker → · Palette generator →

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