#7D8A17#7D8A17

#7D8A17 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.131 H 116.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7D8A17
RGBrgb(125, 138, 23)
HSLhsl(67, 71%, 32%)
HSVhsv(67, 83%, 54%)
CMYKcmyk(9.4%, 0%, 83.3%, 45.9%)
CIE-LABlab(54.66, -19.02, 54.03)
CIE-LCHlch(54.66, 57.28, 109.39°)
OKLaboklab(60.26% -0.0582 0.1172)
OKLCHoklch(60.26% 0.131 116.4)
XYZxyz(17.7011, 22.5991, 4.2400)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A17 #24178A
analogous
#8A5E17 #7D8A17 #438A17
triadic
#7D8A17 #177D8A #8A177D
tetradic
#7D8A17 #178A5E #24178A #8A1743
square
#7D8A17 #178A5E #24178A #8A1743
split-complementary
#7D8A17 #17438A #5E178A
monochromatic
#1E2106 #4D560E #7D8A17 #ADBE20 #CCDF3D

Accessibility & contrast

On white

3.80
#7D8A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7D8A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A17
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A17#FFFFFF#000000##000000
##7D8A171.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938323
Tritanopia (blue-blind)
#858275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a17;
/* rgb */ color: rgb(125, 138, 23);
/* oklch */ color: oklch(60.3% 0.131 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac61',
    500: '#7d8a17',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a17;
$custom-light: #a6ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a17",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 66.783,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60262,
    "c": 0.13084,
    "h": 116.4
  },
  "luminance": 0.22599
}

Semantic roles & 50–950 ramp

primary
#7D8A17
secondary
#4D3FBE
accent
#3AEE4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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