#7D861B#7D861B

#7D861B is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.124 H 114.5°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7D861B
RGBrgb(125, 134, 27)
HSLhsl(65, 66%, 32%)
HSVhsv(65, 80%, 53%)
CMYKcmyk(6.7%, 0%, 79.9%, 47.5%)
CIE-LABlab(53.48, -16.78, 51.80)
CIE-LCHlch(53.48, 54.45, 107.95°)
OKLaboklab(59.32% -0.0517 0.1132)
OKLCHoklch(59.32% 0.124 114.5)
XYZxyz(17.1809, 21.4896, 4.2795)
Luminance0.2149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D861B #241B86
analogous
#865A1B #7D861B #48861B
triadic
#7D861B #1B7D86 #861B7D
tetradic
#7D861B #1B865A #241B86 #861B48
square
#7D861B #1B865A #241B86 #861B48
split-complementary
#7D861B #1B4886 #5A1B86
monochromatic
#1E2006 #4D5311 #7D861B #ADB925 #CCD942

Accessibility & contrast

On white

3.96
#7D861B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#7D861B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D861B
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D861B#FFFFFF#000000##000000
##7D861B1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#908125
Tritanopia (blue-blind)
#867E72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d861b;
/* rgb */ color: rgb(125, 134, 27);
/* oklch */ color: oklch(59.3% 0.124 114.5);
Tailwind
colors: {
  custom: {
    50: '#a6a962',
    500: '#7d861b',
    950: '#000000',
  },
}
SCSS
$custom: #7d861b;
$custom-light: #a6a962;
$custom-dark: #000000;
JSON
{
  "hex": "#7d861b",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 65.047,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59323,
    "c": 0.12439,
    "h": 114.5
  },
  "luminance": 0.21489
}

Semantic roles & 50–950 ramp

primary
#7D861B
secondary
#4D44B9
accent
#3EE94D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D861B

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

Preview Lab → · Contrast checker → · Palette generator →

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