#F2F562#F2F562

#F2F562 is a very light, vivid yellow. Relative luminance 0.851; OKLCH L 94.1% C 0.166 H 110.3°. Best body text is #000000 at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#F2F562
RGBrgb(242, 245, 98)
HSLhsl(61, 88%, 67%)
HSVhsv(61, 60%, 96%)
CMYKcmyk(1.2%, 0%, 60%, 3.9%)
CIE-LABlab(93.91, -19.07, 68.34)
CIE-LCHlch(93.91, 70.95, 105.59°)
OKLaboklab(94.09% -0.0578 0.1561)
OKLCHoklch(94.09% 0.166 110.3)
XYZxyz(71.4770, 85.0657, 24.2070)
Luminance0.8506 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F562 #6562F5
analogous
#F5AE62 #F2F562 #A9F562
triadic
#F2F562 #62F2F5 #F562F2
tetradic
#F2F562 #62F5AE #6562F5 #F562A9
square
#F2F562 #62F5AE #6562F5 #F562A9
split-complementary
#F2F562 #62A9F5 #AE62F5
monochromatic
#CBCF0D #EDF128 #F2F562 #F7F99C #FCFCD5

Accessibility & contrast

On white

1.17
#F2F562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.01
#F2F562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F562
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F562#FFFFFF#000000##000000
##F2F5621.001.1718.0118.01
#FFFFFF1.171.0021.0021.00
#00000018.0121.001.001.00
##00000018.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB50
Deuteranopia (green-blind)
#FFF06B
Tritanopia (blue-blind)
#FFE7D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f2f562;
/* rgb */ color: rgb(242, 245, 98);
/* oklch */ color: oklch(94.1% 0.166 110.3);
Tailwind
colors: {
  custom: {
    50: '#f9f894',
    500: '#f2f562',
    950: '#000000',
  },
}
SCSS
$custom: #f2f562;
$custom-light: #f9f894;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f562",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 98
  },
  "hsl": {
    "h": 61.224,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.94093,
    "c": 0.16649,
    "h": 110.3
  },
  "luminance": 0.85064
}

Semantic roles & 50–950 ramp

primary
#F2F562
secondary
#3330CB
accent
#01E506
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F562

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

Preview Lab → · Contrast checker → · Palette generator →

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