#7D8E17#7D8E17

#7D8E17 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.2% C 0.135 H 118.1°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7D8E17
RGBrgb(125, 142, 23)
HSLhsl(69, 72%, 32%)
HSVhsv(69, 84%, 56%)
CMYKcmyk(12%, 0%, 83.8%, 44.3%)
CIE-LABlab(55.85, -21.08, 55.07)
CIE-LCHlch(55.85, 58.97, 110.94°)
OKLaboklab(61.22% -0.0638 0.1194)
OKLCHoklch(61.22% 0.135 118.1)
XYZxyz(18.2856, 23.7680, 4.4348)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8E17 #28178E
analogous
#8E6317 #7D8E17 #428E17
triadic
#7D8E17 #177D8E #8E177D
tetradic
#7D8E17 #178E63 #28178E #8E1742
square
#7D8E17 #178E63 #28178E #8E1742
split-complementary
#7D8E17 #17428E #63178E
monochromatic
#202506 #4F590E #7D8E17 #ABC320 #C9E03F

Accessibility & contrast

On white

3.65
#7D8E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#7D8E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8E17
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8E17#FFFFFF#000000##000000
##7D8E171.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#858679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7d8e17;
/* rgb */ color: rgb(125, 142, 23);
/* oklch */ color: oklch(61.2% 0.135 118.1);
Tailwind
colors: {
  custom: {
    50: '#a6af61',
    500: '#7d8e17',
    950: '#000000',
  },
}
SCSS
$custom: #7d8e17;
$custom-light: #a6af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8e17",
  "rgb": {
    "r": 125,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 68.571,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61225,
    "c": 0.13541,
    "h": 118.1
  },
  "luminance": 0.23768
}

Semantic roles & 50–950 ramp

primary
#7D8E17
secondary
#5340C0
accent
#39EF53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8E17

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

Preview Lab → · Contrast checker → · Palette generator →

#7D8E17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva