#F2F28E#F2F28E

#F2F28E is a very light, vivid yellow. Relative luminance 0.843; OKLCH L 94.0% C 0.123 H 108.5°. Best body text is #000000 at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#F2F28E
RGBrgb(242, 242, 142)
HSLhsl(60, 79%, 75%)
HSVhsv(60, 41%, 95%)
CMYKcmyk(0%, 0%, 41.3%, 5.1%)
CIE-LABlab(93.60, -13.97, 48.14)
CIE-LCHlch(93.60, 50.13, 106.19°)
OKLaboklab(93.99% -0.039 0.1163)
OKLCHoklch(93.99% 0.123 108.5)
XYZxyz(73.2538, 84.3361, 38.0056)
Luminance0.8434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F28E #8E8EF2
analogous
#F2C08E #F2F28E #C0F28E
triadic
#F2F28E #8EF2F2 #F28EF2
tetradic
#F2F28E #8EF2C0 #8E8EF2 #F28EC0
square
#F2F28E #8EF2C0 #8E8EF2 #F28EC0
split-complementary
#F2F28E #8EC0F2 #C08EF2
monochromatic
#E5E520 #ECEC57 #F2F28E #F8F8C5 #FCFCE4

Accessibility & contrast

On white

1.18
#F2F28E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.87
#F2F28E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F28E
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F28E#FFFFFF#000000##000000
##F2F28E1.001.1817.8717.87
#FFFFFF1.181.0021.0021.00
#00000017.8721.001.001.00
##00000017.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA86
Deuteranopia (green-blind)
#FFEE93
Tritanopia (blue-blind)
#FFE7DA
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f2f28e;
/* rgb */ color: rgb(242, 242, 142);
/* oklch */ color: oklch(94.0% 0.123 108.5);
Tailwind
colors: {
  custom: {
    50: '#f8f6b0',
    500: '#f2f28e',
    950: '#000000',
  },
}
SCSS
$custom: #f2f28e;
$custom-light: #f8f6b0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f28e",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 142
  },
  "hsl": {
    "h": 60,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.93991,
    "c": 0.12271,
    "h": 108.5
  },
  "luminance": 0.84335
}

Semantic roles & 50–950 ramp

primary
#F2F28E
secondary
#5656CF
accent
#0ADC0A
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171711
muted
#858581

Preview Lab

Preview with #F2F28E

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

Preview Lab → · Contrast checker → · Palette generator →

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