#7D861A#7D861A

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

Color values

HEX#7D861A
RGBrgb(125, 134, 26)
HSLhsl(65, 68%, 31%)
HSVhsv(65, 81%, 53%)
CMYKcmyk(6.7%, 0%, 80.6%, 47.5%)
CIE-LABlab(53.48, -16.82, 52.11)
CIE-LCHlch(53.48, 54.75, 107.89°)
OKLaboklab(59.32% -0.0519 0.1136)
OKLCHoklch(59.32% 0.125 114.5)
XYZxyz(17.1695, 21.4851, 4.2197)
Luminance0.2149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D861A #231A86
analogous
#86591A #7D861A #47861A
triadic
#7D861A #1A7D86 #861A7D
tetradic
#7D861A #1A8659 #231A86 #861A47
square
#7D861A #1A8659 #231A86 #861A47
split-complementary
#7D861A #1A4786 #591A86
monochromatic
#1D1F06 #4D5310 #7D861A #ADB924 #CDDA40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D861A#FFFFFF#000000##000000
##7D861A1.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)
#908124
Tritanopia (blue-blind)
#867E72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d861a;
/* rgb */ color: rgb(125, 134, 26);
/* oklch */ color: oklch(59.3% 0.125 114.5);
Tailwind
colors: {
  custom: {
    50: '#a6a961',
    500: '#7d861a',
    950: '#000000',
  },
}
SCSS
$custom: #7d861a;
$custom-light: #a6a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7d861a",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 26
  },
  "hsl": {
    "h": 65,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.59318,
    "c": 0.12491,
    "h": 114.5
  },
  "luminance": 0.21485
}

Semantic roles & 50–950 ramp

primary
#7D861A
secondary
#4C42B9
accent
#3DEA4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D861A

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

Preview Lab → · Contrast checker → · Palette generator →

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