#F7CF02#F7CF02

#F7CF02 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 86.3% C 0.177 H 94.8°. Best body text is #000000 at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#F7CF02
RGBrgb(247, 207, 2)
HSLhsl(50, 98%, 49%)
HSVhsv(50, 99%, 97%)
CMYKcmyk(0%, 16.2%, 99.2%, 3.1%)
CIE-LABlab(84.18, -1.26, 84.66)
CIE-LCHlch(84.18, 84.67, 90.85°)
OKLaboklab(86.33% -0.0147 0.1763)
OKLCHoklch(86.33% 0.177 94.8)
XYZxyz(60.6853, 64.4080, 9.2931)
Luminance0.6440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7CF02 #022AF7
analogous
#F75502 #F7CF02 #A5F702
triadic
#F7CF02 #02F7CF #CF02F7
tetradic
#F7CF02 #02F755 #022AF7 #F702A5
square
#F7CF02 #02F755 #022AF7 #F702A5
split-complementary
#F7CF02 #02A5F7 #5502F7
monochromatic
#7E6901 #BA9C02 #F7CF02 #FDDD39 #FEE876

Accessibility & contrast

On white

1.51
#F7CF02 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.88
#F7CF02 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7CF02
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7CF02#FFFFFF#000000##000000
##F7CF021.001.5113.8813.88
#FFFFFF1.511.0021.0021.00
#00000013.8821.001.001.00
##00000013.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CB00
Deuteranopia (green-blind)
#F1D722
Tritanopia (blue-blind)
#FFBDB0
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #f7cf02;
/* rgb */ color: rgb(247, 207, 2);
/* oklch */ color: oklch(86.3% 0.177 94.8);
Tailwind
colors: {
  custom: {
    50: '#ffdd6b',
    500: '#f7cf02',
    950: '#000000',
  },
}
SCSS
$custom: #f7cf02;
$custom-light: #ffdd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#f7cf02",
  "rgb": {
    "r": 247,
    "g": 207,
    "b": 2
  },
  "hsl": {
    "h": 50.204,
    "s": 98.394,
    "l": 48.824
  },
  "oklch": {
    "l": 0.86327,
    "c": 0.17695,
    "h": 94.8
  },
  "luminance": 0.64404
}

Semantic roles & 50–950 ramp

primary
#F7CF02
secondary
#182A85
accent
#4CFF29
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#191508
muted
#87847D

Preview Lab

Preview with #F7CF02

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

Preview Lab → · Contrast checker → · Palette generator →

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