#7D8A1A#7D8A1A

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

Color values

HEX#7D8A1A
RGBrgb(125, 138, 26)
HSLhsl(67, 68%, 32%)
HSVhsv(67, 81%, 54%)
CMYKcmyk(9.4%, 0%, 81.2%, 45.9%)
CIE-LABlab(54.67, -18.91, 53.17)
CIE-LCHlch(54.67, 56.44, 109.57°)
OKLaboklab(60.28% -0.0576 0.1159)
OKLCHoklch(60.28% 0.129 116.4)
XYZxyz(17.7329, 22.6118, 4.4074)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A1A #271A8A
analogous
#8A5F1A #7D8A1A #458A1A
triadic
#7D8A1A #1A7D8A #8A1A7D
tetradic
#7D8A1A #1A8A5F #271A8A #8A1A45
square
#7D8A1A #1A8A5F #271A8A #8A1A45
split-complementary
#7D8A1A #1A458A #5F1A8A
monochromatic
#202307 #4E5710 #7D8A1A #ACBD24 #CADC43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7d8a1a;
/* rgb */ color: rgb(125, 138, 26);
/* oklch */ color: oklch(60.3% 0.129 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac62',
    500: '#7d8a1a',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a1a;
$custom-light: #a6ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a1a",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 66.964,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60277,
    "c": 0.12945,
    "h": 116.4
  },
  "luminance": 0.22612
}

Semantic roles & 50–950 ramp

primary
#7D8A1A
secondary
#5143BD
accent
#3DEB51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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