#7D862B#7D862B

#7D862B is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.114 H 114.8°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7D862B
RGBrgb(125, 134, 43)
HSLhsl(66, 51%, 35%)
HSVhsv(66, 68%, 53%)
CMYKcmyk(6.7%, 0%, 67.9%, 47.5%)
CIE-LABlab(53.58, -15.92, 45.89)
CIE-LCHlch(53.58, 48.57, 109.13°)
OKLaboklab(59.44% -0.0477 0.1036)
OKLCHoklch(59.44% 0.114 114.8)
XYZxyz(17.4190, 21.5849, 5.5337)
Luminance0.2158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D862B #342B86
analogous
#86622B #7D862B #50862B
triadic
#7D862B #2B7D86 #862B7D
tetradic
#7D862B #2B8662 #342B86 #862B50
square
#7D862B #2B8662 #342B86 #862B50
split-complementary
#7D862B #2B5086 #622B86
monochromatic
#27290D #52581C #7D862B #A8B43A #C1CC60

Accessibility & contrast

On white

3.95
#7D862B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7D862B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D862B
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D862B#FFFFFF#000000##000000
##7D862B1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1E
Deuteranopia (green-blind)
#8F8131
Tritanopia (blue-blind)
#857E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d862b;
/* rgb */ color: rgb(125, 134, 43);
/* oklch */ color: oklch(59.4% 0.114 114.8);
Tailwind
colors: {
  custom: {
    50: '#a5a96a',
    500: '#7d862b',
    950: '#000000',
  },
}
SCSS
$custom: #7d862b;
$custom-light: #a5a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d862b",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 43
  },
  "hsl": {
    "h": 65.934,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59438,
    "c": 0.11404,
    "h": 114.8
  },
  "luminance": 0.21585
}

Semantic roles & 50–950 ramp

primary
#7D862B
secondary
#645BB2
accent
#4DDB5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D862B

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

Preview Lab → · Contrast checker → · Palette generator →

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