#F2F865#F2F865

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

Color values

HEX#F2F865
RGBrgb(242, 248, 101)
HSLhsl(62, 91%, 68%)
HSVhsv(62, 59%, 97%)
CMYKcmyk(2.4%, 0%, 59.3%, 2.7%)
CIE-LABlab(94.72, -20.31, 67.98)
CIE-LCHlch(94.72, 70.95, 106.64°)
OKLaboklab(94.75% -0.061 0.1558)
OKLCHoklch(94.75% 0.167 111.4)
XYZxyz(72.5363, 86.9533, 25.2720)
Luminance0.8695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F865 #6B65F8
analogous
#F8B465 #F2F865 #A8F865
triadic
#F2F865 #65F2F8 #F865F2
tetradic
#F2F865 #65F8B4 #6B65F8 #F865A8
square
#F2F865 #65F8B4 #6B65F8 #F865A8
split-complementary
#F2F865 #65A8F8 #B465F8
monochromatic
#D0D90A #EDF52A #F2F865 #F7FBA0 #FCFDDA

Accessibility & contrast

On white

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

On black

18.39
#F2F865 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F865
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F865#FFFFFF#000000##000000
##F2F8651.001.1418.3918.39
#FFFFFF1.141.0021.0021.00
#00000018.3921.001.001.00
##00000018.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE54
Deuteranopia (green-blind)
#FFF26E
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f865;
/* rgb */ color: rgb(242, 248, 101);
/* oklch */ color: oklch(94.7% 0.167 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9fa96',
    500: '#f2f865',
    950: '#000000',
  },
}
SCSS
$custom: #f2f865;
$custom-light: #f9fa96;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f865",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 101
  },
  "hsl": {
    "h": 62.449,
    "s": 91.304,
    "l": 68.431
  },
  "oklch": {
    "l": 0.94745,
    "c": 0.16728,
    "h": 111.4
  },
  "luminance": 0.86952
}

Semantic roles & 50–950 ramp

primary
#F2F865
secondary
#3630D1
accent
#00E609
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F865

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

Preview Lab → · Contrast checker → · Palette generator →

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