#FFF702#FFF702

#FFF702 is a very light, highly saturated yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.204 H 107.3°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#FFF702
RGBrgb(255, 247, 2)
HSLhsl(58, 100%, 50%)
HSVhsv(58, 99%, 100%)
CMYKcmyk(0%, 3.1%, 99.2%, 0%)
CIE-LABlab(95.07, -17.72, 92.83)
CIE-LCHlch(95.07, 94.50, 100.81°)
OKLaboklab(95.15% -0.0608 0.1949)
OKLCHoklch(95.15% 0.204 107.3)
XYZxyz(74.5151, 87.7888, 13.0773)
Luminance0.8779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF702 #020AFF
analogous
#FF7902 #FFF702 #88FF02
triadic
#FFF702 #02FFF7 #F702FF
tetradic
#FFF702 #02FF79 #020AFF #FF0288
square
#FFF702 #02FF79 #020AFF #FF0288
split-complementary
#FFF702 #0288FF #7902FF
monochromatic
#878200 #C4BE00 #FFF702 #FFF93F #FFFB7C

Accessibility & contrast

On white

1.13
#FFF702 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.56
#FFF702 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF702
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF702#FFFFFF#000000##000000
##FFF7021.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED00
Deuteranopia (green-blind)
#FFF42F
Tritanopia (blue-blind)
#FFE6D3
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fff702;
/* rgb */ color: rgb(255, 247, 2);
/* oklch */ color: oklch(95.1% 0.204 107.3);
Tailwind
colors: {
  custom: {
    50: '#fff972',
    500: '#fff702',
    950: '#000000',
  },
}
SCSS
$custom: #fff702;
$custom-light: #fff972;
$custom-dark: #000000;
JSON
{
  "hex": "#fff702",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 2
  },
  "hsl": {
    "h": 58.103,
    "s": 100,
    "l": 50.392
  },
  "oklch": {
    "l": 0.95147,
    "c": 0.20414,
    "h": 107.3
  },
  "luminance": 0.87786
}

Semantic roles & 50–950 ramp

primary
#FFF702
secondary
#191C8C
accent
#30FF29
background
#FFFFFB
surface
#FFFEF1
border
#D7D6CB
text
#19170A
muted
#87857D

Preview Lab

Preview with #FFF702

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

Preview Lab → · Contrast checker → · Palette generator →

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