#F2F786#F2F786

#F2F786 is a very light, vivid yellow. Relative luminance 0.871; OKLCH L 94.9% C 0.137 H 111.0°. Best body text is #000000 at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#F2F786
RGBrgb(242, 247, 134)
HSLhsl(63, 88%, 75%)
HSVhsv(63, 46%, 97%)
CMYKcmyk(2%, 0%, 45.7%, 3.1%)
CIE-LABlab(94.79, -17.19, 53.42)
CIE-LCHlch(94.79, 56.12, 107.84°)
OKLaboklab(94.91% -0.0489 0.1276)
OKLCHoklch(94.91% 0.137 111)
XYZxyz(74.1831, 87.1214, 35.4579)
Luminance0.8712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F786 #8B86F7
analogous
#F7C486 #F2F786 #BAF786
triadic
#F2F786 #86F2F7 #F786F2
tetradic
#F2F786 #86F7C4 #8B86F7 #F786BA
square
#F2F786 #86F7C4 #8B86F7 #F786BA
split-complementary
#F2F786 #86BAF7 #C486F7
monochromatic
#E6EF13 #ECF34D #F2F786 #F8FBBF #FCFDE2

Accessibility & contrast

On white

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

On black

18.42
#F2F786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F786
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F786#FFFFFF#000000##000000
##F2F7861.001.1418.4218.42
#FFFFFF1.141.0021.0021.00
#00000018.4221.001.001.00
##00000018.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE7C
Deuteranopia (green-blind)
#FFF28C
Tritanopia (blue-blind)
#FFEBDD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f786;
/* rgb */ color: rgb(242, 247, 134);
/* oklch */ color: oklch(94.9% 0.137 111.0);
Tailwind
colors: {
  custom: {
    50: '#f8f9ab',
    500: '#f2f786',
    950: '#000000',
  },
}
SCSS
$custom: #f2f786;
$custom-light: #f8f9ab;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f786",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 134
  },
  "hsl": {
    "h": 62.655,
    "s": 87.597,
    "l": 74.706
  },
  "oklch": {
    "l": 0.94909,
    "c": 0.13663,
    "h": 111
  },
  "luminance": 0.8712
}

Semantic roles & 50–950 ramp

primary
#F2F786
secondary
#534DD4
accent
#01E40B
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#171710
muted
#858581

Preview Lab

Preview with #F2F786

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

Preview Lab → · Contrast checker → · Palette generator →

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