#7D8B1E#7D8B1E

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

Color values

HEX#7D8B1E
RGBrgb(125, 139, 30)
HSLhsl(68, 64%, 33%)
HSVhsv(68, 78%, 55%)
CMYKcmyk(10.1%, 0%, 78.4%, 45.5%)
CIE-LABlab(54.99, -19.26, 52.20)
CIE-LCHlch(54.99, 55.64, 110.25°)
OKLaboklab(60.54% -0.0583 0.1146)
OKLCHoklch(60.54% 0.129 117)
XYZxyz(17.9249, 22.9192, 4.7076)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B1E #2C1E8B
analogous
#8B621E #7D8B1E #478B1E
triadic
#7D8B1E #1E7D8B #8B1E7D
tetradic
#7D8B1E #1E8B62 #2C1E8B #8B1E47
square
#7D8B1E #1E8B62 #2C1E8B #8B1E47
split-complementary
#7D8B1E #1E478B #621E8B
monochromatic
#222608 #505913 #7D8B1E #AABD29 #C6D84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8B1E#FFFFFF#000000##000000
##7D8B1E1.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)
#958301
Deuteranopia (green-blind)
#948428
Tritanopia (blue-blind)
#858377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8b1e;
/* rgb */ color: rgb(125, 139, 30);
/* oklch */ color: oklch(60.5% 0.129 117.0);
Tailwind
colors: {
  custom: {
    50: '#a6ac64',
    500: '#7d8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b1e;
$custom-light: #a6ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b1e",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 67.706,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60539,
    "c": 0.12853,
    "h": 117
  },
  "luminance": 0.22919
}

Semantic roles & 50–950 ramp

primary
#7D8B1E
secondary
#594ABB
accent
#40E756
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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