#7D8B1A#7D8B1A

#7D8B1A is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.131 H 116.9°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7D8B1A
RGBrgb(125, 139, 26)
HSLhsl(67, 68%, 32%)
HSVhsv(67, 81%, 55%)
CMYKcmyk(10.1%, 0%, 81.3%, 45.5%)
CIE-LABlab(54.97, -19.43, 53.44)
CIE-LCHlch(54.97, 56.86, 109.98°)
OKLaboklab(60.52% -0.059 0.1165)
OKLCHoklch(60.52% 0.131 116.9)
XYZxyz(17.8770, 22.9000, 4.4555)
Luminance0.2290 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B1A #281A8B
analogous
#8B611A #7D8B1A #448B1A
triadic
#7D8B1A #1A7D8B #8B1A7D
tetradic
#7D8B1A #1A8B61 #281A8B #8B1A44
square
#7D8B1A #1A8B61 #281A8B #8B1A44
split-complementary
#7D8B1A #1A448B #611A8B
monochromatic
#202407 #4F5710 #7D8B1A #ABBF24 #C9DC43

Accessibility & contrast

On white

3.76
#7D8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7D8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8B1A
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8B1A#FFFFFF#000000##000000
##7D8B1A1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#858376
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8b1a;
/* rgb */ color: rgb(125, 139, 26);
/* oklch */ color: oklch(60.5% 0.131 116.9);
Tailwind
colors: {
  custom: {
    50: '#a6ac62',
    500: '#7d8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b1a;
$custom-light: #a6ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b1a",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 67.434,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60517,
    "c": 0.13059,
    "h": 116.9
  },
  "luminance": 0.229
}

Semantic roles & 50–950 ramp

primary
#7D8B1A
secondary
#5344BD
accent
#3CEB52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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