#F2F868#F2F868

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

Color values

HEX#F2F868
RGBrgb(242, 248, 104)
HSLhsl(63, 91%, 69%)
HSVhsv(63, 58%, 97%)
CMYKcmyk(2.4%, 0%, 58.1%, 2.7%)
CIE-LABlab(94.74, -20.11, 66.76)
CIE-LCHlch(94.74, 69.72, 106.76°)
OKLaboklab(94.77% -0.0601 0.1535)
OKLCHoklch(94.77% 0.165 111.4)
XYZxyz(72.6859, 87.0132, 26.0603)
Luminance0.8701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F868 #6E68F8
analogous
#F8B668 #F2F868 #AAF868
triadic
#F2F868 #68F2F8 #F868F2
tetradic
#F2F868 #68F8B6 #6E68F8 #F868AA
square
#F2F868 #68F8B6 #6E68F8 #F868AA
split-complementary
#F2F868 #68AAF8 #B668F8
monochromatic
#D3DB0A #EDF52E #F2F868 #F7FBA2 #FCFDDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2F868#FFFFFF#000000##000000
##F2F8681.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)
#FFEE58
Deuteranopia (green-blind)
#FFF271
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f868;
/* rgb */ color: rgb(242, 248, 104);
/* oklch */ color: oklch(94.8% 0.165 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9fa98',
    500: '#f2f868',
    950: '#000000',
  },
}
SCSS
$custom: #f2f868;
$custom-light: #f9fa98;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f868",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 104
  },
  "hsl": {
    "h": 62.5,
    "s": 91.139,
    "l": 69.02
  },
  "oklch": {
    "l": 0.94774,
    "c": 0.16489,
    "h": 111.4
  },
  "luminance": 0.87012
}

Semantic roles & 50–950 ramp

primary
#F2F868
secondary
#3932D2
accent
#00E60A
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F868

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

Preview Lab → · Contrast checker → · Palette generator →

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