#7E8B1D#7E8B1D

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

Color values

HEX#7E8B1D
RGBrgb(126, 139, 29)
HSLhsl(67, 65%, 33%)
HSVhsv(67, 79%, 55%)
CMYKcmyk(9.4%, 0%, 79.1%, 45.5%)
CIE-LABlab(55.06, -18.86, 52.62)
CIE-LCHlch(55.06, 55.90, 109.71°)
OKLaboklab(60.62% -0.0573 0.1152)
OKLCHoklch(60.62% 0.129 116.4)
XYZxyz(18.0591, 22.9898, 4.6483)
Luminance0.2299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B1D #2A1D8B
analogous
#8B611D #7E8B1D #478B1D
triadic
#7E8B1D #1D7E8B #8B1D7E
tetradic
#7E8B1D #1D8B61 #2A1D8B #8B1D47
square
#7E8B1D #1D8B61 #2A1D8B #8B1D47
split-complementary
#7E8B1D #1D478B #611D8B
monochromatic
#222608 #505812 #7E8B1D #ACBE28 #C8D949

Accessibility & contrast

On white

3.75
#7E8B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B1D
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B1D#FFFFFF#000000##000000
##7E8B1D1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8b1d;
/* rgb */ color: rgb(126, 139, 29);
/* oklch */ color: oklch(60.6% 0.129 116.4);
Tailwind
colors: {
  custom: {
    50: '#a7ac63',
    500: '#7e8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b1d;
$custom-light: #a7ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b1d",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 67.091,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60616,
    "c": 0.12869,
    "h": 116.4
  },
  "luminance": 0.2299
}

Semantic roles & 50–950 ramp

primary
#7E8B1D
secondary
#5649BB
accent
#3FE853
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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