#F2F781#F2F781

#F2F781 is a very light, vivid yellow. Relative luminance 0.870; OKLCH L 94.8% C 0.142 H 111.0°. Best body text is #000000 at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#F2F781
RGBrgb(242, 247, 129)
HSLhsl(63, 88%, 74%)
HSVhsv(63, 48%, 97%)
CMYKcmyk(2%, 0%, 47.8%, 3.1%)
CIE-LABlab(94.73, -17.64, 55.68)
CIE-LCHlch(94.73, 58.41, 107.58°)
OKLaboklab(94.85% -0.0507 0.1322)
OKLCHoklch(94.85% 0.142 111)
XYZxyz(73.8426, 86.9852, 33.6645)
Luminance0.8698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F781 #8681F7
analogous
#F7C181 #F2F781 #B7F781
triadic
#F2F781 #81F2F7 #F781F2
tetradic
#F2F781 #81F7C1 #8681F7 #F781B7
square
#F2F781 #81F7C1 #8681F7 #F781B7
split-complementary
#F2F781 #81B7F7 #C181F7
monochromatic
#E5EE0F #ECF347 #F2F781 #F8FBBB #FCFDE2

Accessibility & contrast

On white

1.14
#F2F781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.40
#F2F781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F781
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F781#FFFFFF#000000##000000
##F2F7811.001.1418.4018.40
#FFFFFF1.141.0021.0021.00
#00000018.4021.001.001.00
##00000018.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE76
Deuteranopia (green-blind)
#FFF287
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f781;
/* rgb */ color: rgb(242, 247, 129);
/* oklch */ color: oklch(94.8% 0.142 111.0);
Tailwind
colors: {
  custom: {
    50: '#f8f9a8',
    500: '#f2f781',
    950: '#000000',
  },
}
SCSS
$custom: #f2f781;
$custom-light: #f8f9a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f781",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 129
  },
  "hsl": {
    "h": 62.542,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.94845,
    "c": 0.14155,
    "h": 111
  },
  "luminance": 0.86984
}

Semantic roles & 50–950 ramp

primary
#F2F781
secondary
#4E49D4
accent
#01E50B
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#171710
muted
#858581

Preview Lab

Preview with #F2F781

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

Preview Lab → · Contrast checker → · Palette generator →

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