#F2E862#F2E862

#F2E862 is a very light, vivid yellow. Relative luminance 0.775; OKLCH L 91.4% C 0.154 H 105.0°. Best body text is #000000 at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#F2E862
RGBrgb(242, 232, 98)
HSLhsl(56, 85%, 67%)
HSVhsv(56, 60%, 95%)
CMYKcmyk(0%, 4.1%, 59.5%, 5.1%)
CIE-LABlab(90.54, -12.73, 64.68)
CIE-LCHlch(90.54, 65.92, 101.13°)
OKLaboklab(91.41% -0.0398 0.1484)
OKLCHoklch(91.41% 0.154 105)
XYZxyz(67.6815, 77.4746, 22.9418)
Luminance0.7747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E862 #626CF2
analogous
#F2A062 #F2E862 #B4F262
triadic
#F2E862 #62F2E8 #E862F2
tetradic
#F2E862 #62F2A0 #626CF2 #F262B4
square
#F2E862 #62F2A0 #626CF2 #F262B4
split-complementary
#F2E862 #62B4F2 #A062F2
monochromatic
#C9BC11 #EDE029 #F2E862 #F7F09B #FBF9D3

Accessibility & contrast

On white

1.27
#F2E862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.49
#F2E862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E862
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E862#FFFFFF#000000##000000
##F2E8621.001.2716.4916.49
#FFFFFF1.271.0021.0021.00
#00000016.4921.001.001.00
##00000016.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE053
Deuteranopia (green-blind)
#FEE769
Tritanopia (blue-blind)
#FFDACB
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e862;
/* rgb */ color: rgb(242, 232, 98);
/* oklch */ color: oklch(91.4% 0.154 105.0);
Tailwind
colors: {
  custom: {
    50: '#f9ef94',
    500: '#f2e862',
    950: '#000000',
  },
}
SCSS
$custom: #f2e862;
$custom-light: #f9ef94;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e862",
  "rgb": {
    "r": 242,
    "g": 232,
    "b": 98
  },
  "hsl": {
    "h": 55.833,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.91406,
    "c": 0.15361,
    "h": 105
  },
  "luminance": 0.77472
}

Semantic roles & 50–950 ramp

primary
#F2E862
secondary
#333DC6
accent
#14E104
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2E862

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

Preview Lab → · Contrast checker → · Palette generator →

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