#7D811B#7D811B

#7D811B is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.119 H 111.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7D811B
RGBrgb(125, 129, 27)
HSLhsl(62, 65%, 31%)
HSVhsv(62, 79%, 51%)
CMYKcmyk(3.1%, 0%, 79.1%, 49.4%)
CIE-LABlab(52.00, -14.12, 50.45)
CIE-LCHlch(52.00, 52.39, 105.64°)
OKLaboklab(58.13% -0.0443 0.1103)
OKLCHoklch(58.13% 0.119 111.9)
XYZxyz(16.5061, 20.1400, 4.0546)
Luminance0.2014 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D811B #1F1B81
analogous
#81521B #7D811B #4A811B
triadic
#7D811B #1B7D81 #811B7D
tetradic
#7D811B #1B8152 #1F1B81 #811B4A
square
#7D811B #1B8152 #1F1B81 #811B4A
split-complementary
#7D811B #1B4A81 #521B81
monochromatic
#1B1C06 #4C4E10 #7D811B #AEB426 #D1D73F

Accessibility & contrast

On white

4.18
#7D811B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#7D811B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D811B
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D811B#FFFFFF#000000##000000
##7D811B1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B01
Deuteranopia (green-blind)
#8C7D24
Tritanopia (blue-blind)
#86796E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7d811b;
/* rgb */ color: rgb(125, 129, 27);
/* oklch */ color: oklch(58.1% 0.119 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a561',
    500: '#7d811b',
    950: '#000000',
  },
}
SCSS
$custom: #7d811b;
$custom-light: #a6a561;
$custom-dark: #000000;
JSON
{
  "hex": "#7d811b",
  "rgb": {
    "r": 125,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 62.353,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58132,
    "c": 0.11885,
    "h": 111.9
  },
  "luminance": 0.2014
}

Semantic roles & 50–950 ramp

primary
#7D811B
secondary
#4843B5
accent
#3FE846
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D811B

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

Preview Lab → · Contrast checker → · Palette generator →

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