#7D8A1B#7D8A1B

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

Color values

HEX#7D8A1B
RGBrgb(125, 138, 27)
HSLhsl(67, 67%, 32%)
HSVhsv(67, 80%, 54%)
CMYKcmyk(9.4%, 0%, 80.4%, 45.9%)
CIE-LABlab(54.67, -18.87, 52.87)
CIE-LCHlch(54.67, 56.14, 109.64°)
OKLaboklab(60.28% -0.0574 0.1155)
OKLCHoklch(60.28% 0.129 116.5)
XYZxyz(17.7442, 22.6163, 4.4673)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A1B #281B8A
analogous
#8A601B #7D8A1B #468A1B
triadic
#7D8A1B #1B7D8A #8A1B7D
tetradic
#7D8A1B #1B8A60 #281B8A #8A1B46
square
#7D8A1B #1B8A60 #281B8A #8A1B46
split-complementary
#7D8A1B #1B468A #601B8A
monochromatic
#202407 #4F5711 #7D8A1B #ABBD25 #C9DB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8A1B#FFFFFF#000000##000000
##7D8A1B1.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)
#938426
Tritanopia (blue-blind)
#858276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a1b;
/* rgb */ color: rgb(125, 138, 27);
/* oklch */ color: oklch(60.3% 0.129 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac62',
    500: '#7d8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a1b;
$custom-light: #a6ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a1b",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 67.027,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60282,
    "c": 0.12895,
    "h": 116.5
  },
  "luminance": 0.22616
}

Semantic roles & 50–950 ramp

primary
#7D8A1B
secondary
#5345BC
accent
#3EEA52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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