#F7D862#F7D862

#F7D862 is a very light, vivid yellow. Relative luminance 0.698; OKLCH L 88.6% C 0.140 H 94.6°. Best body text is #000000 at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#F7D862
RGBrgb(247, 216, 98)
HSLhsl(48, 90%, 68%)
HSVhsv(48, 60%, 97%)
CMYKcmyk(0%, 12.6%, 60.3%, 3.1%)
CIE-LABlab(86.88, -2.68, 60.76)
CIE-LCHlch(86.88, 60.82, 92.52°)
OKLaboklab(88.61% -0.0114 0.1399)
OKLCHoklch(88.61% 0.14 94.6)
XYZxyz(65.1211, 69.7709, 21.5899)
Luminance0.6977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7D862 #6281F7
analogous
#F78E62 #F7D862 #CBF762
triadic
#F7D862 #62F7D8 #D862F7
tetradic
#F7D862 #62F78E #6281F7 #F762CB
square
#F7D862 #62F78E #6281F7 #F762CB
split-complementary
#F7D862 #62CBF7 #8E62F7
monochromatic
#D4AA0B #F4CA28 #F7D862 #FAE69C #FDF5D6

Accessibility & contrast

On white

1.40
#F7D862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.95
#F7D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7D862
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7D862#FFFFFF#000000##000000
##F7D8621.001.4014.9514.95
#FFFFFF1.401.0021.0021.00
#00000014.9521.001.001.00
##00000014.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD455
Deuteranopia (green-blind)
#F4DE67
Tritanopia (blue-blind)
#FFC9BE
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f7d862;
/* rgb */ color: rgb(247, 216, 98);
/* oklch */ color: oklch(88.6% 0.140 94.6);
Tailwind
colors: {
  custom: {
    50: '#fde393',
    500: '#f7d862',
    950: '#000000',
  },
}
SCSS
$custom: #f7d862;
$custom-light: #fde393;
$custom-dark: #000000;
JSON
{
  "hex": "#f7d862",
  "rgb": {
    "r": 247,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 47.517,
    "s": 90.303,
    "l": 67.647
  },
  "oklch": {
    "l": 0.88608,
    "c": 0.14036,
    "h": 94.6
  },
  "luminance": 0.69768
}

Semantic roles & 50–950 ramp

primary
#F7D862
secondary
#2F50CF
accent
#30E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F7D862

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

Preview Lab → · Contrast checker → · Palette generator →

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