#F2F281#F2F281

#F2F281 is a very light, vivid yellow. Relative luminance 0.840; OKLCH L 93.8% C 0.136 H 108.8°. Best body text is #000000 at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#F2F281
RGBrgb(242, 242, 129)
HSLhsl(60, 81%, 73%)
HSVhsv(60, 47%, 95%)
CMYKcmyk(0%, 0%, 46.7%, 5.1%)
CIE-LABlab(93.44, -15.21, 54.12)
CIE-LCHlch(93.44, 56.22, 105.70°)
OKLaboklab(93.81% -0.0437 0.1288)
OKLCHoklch(93.81% 0.136 108.8)
XYZxyz(72.3340, 83.9682, 33.1617)
Luminance0.8397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F281 #8181F2
analogous
#F2B981 #F2F281 #B9F281
triadic
#F2F281 #81F2F2 #F281F2
tetradic
#F2F281 #81F2B9 #8181F2 #F281B9
square
#F2F281 #81F2B9 #8181F2 #F281B9
split-complementary
#F2F281 #81B9F2 #B981F2
monochromatic
#E1E117 #ECEC4A #F2F281 #F8F8B8 #FCFCE3

Accessibility & contrast

On white

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

On black

17.79
#F2F281 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F281
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F281#FFFFFF#000000##000000
##F2F2811.001.1817.7917.79
#FFFFFF1.181.0021.0021.00
#00000017.7921.001.001.00
##00000017.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA77
Deuteranopia (green-blind)
#FFEE86
Tritanopia (blue-blind)
#FFE6D8
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f2f281;
/* rgb */ color: rgb(242, 242, 129);
/* oklch */ color: oklch(93.8% 0.136 108.8);
Tailwind
colors: {
  custom: {
    50: '#f8f6a8',
    500: '#f2f281',
    950: '#000000',
  },
}
SCSS
$custom: #f2f281;
$custom-light: #f8f6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f281",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 129
  },
  "hsl": {
    "h": 60,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.93812,
    "c": 0.13597,
    "h": 108.8
  },
  "luminance": 0.83966
}

Semantic roles & 50–950 ramp

primary
#F2F281
secondary
#4A4ACD
accent
#08DE08
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171710
muted
#858581

Preview Lab

Preview with #F2F281

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

Preview Lab → · Contrast checker → · Palette generator →

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