#7D8D1E#7D8D1E

#7D8D1E is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.0% C 0.131 H 117.8°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7D8D1E
RGBrgb(125, 141, 30)
HSLhsl(69, 65%, 34%)
HSVhsv(69, 79%, 55%)
CMYKcmyk(11.3%, 0%, 78.7%, 44.7%)
CIE-LABlab(55.59, -20.28, 52.75)
CIE-LCHlch(55.59, 56.52, 111.03°)
OKLaboklab(61.02% -0.0611 0.1157)
OKLCHoklch(61.02% 0.131 117.8)
XYZxyz(18.2171, 23.5037, 4.8050)
Luminance0.2350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8D1E #2E1E8D
analogous
#8D651E #7D8D1E #458D1E
triadic
#7D8D1E #1E7D8D #8D1E7D
tetradic
#7D8D1E #1E8D65 #2E1E8D #8D1E45
square
#7D8D1E #1E8D65 #2E1E8D #8D1E45
split-complementary
#7D8D1E #1E458D #651E8D
monochromatic
#242809 #505B13 #7D8D1E #AABF29 #C5D94C

Accessibility & contrast

On white

3.68
#7D8D1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#7D8D1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8D1E
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8D1E#FFFFFF#000000##000000
##7D8D1E1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958628
Tritanopia (blue-blind)
#858578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7d8d1e;
/* rgb */ color: rgb(125, 141, 30);
/* oklch */ color: oklch(61.0% 0.131 117.8);
Tailwind
colors: {
  custom: {
    50: '#a6ae64',
    500: '#7d8d1e',
    950: '#000000',
  },
}
SCSS
$custom: #7d8d1e;
$custom-light: #a6ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8d1e",
  "rgb": {
    "r": 125,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 68.649,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.6102,
    "c": 0.13087,
    "h": 117.8
  },
  "luminance": 0.23503
}

Semantic roles & 50–950 ramp

primary
#7D8D1E
secondary
#5B4BBC
accent
#40E858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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