#7D831B#7D831B

#7D831B is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.121 H 113.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7D831B
RGBrgb(125, 131, 27)
HSLhsl(63, 66%, 31%)
HSVhsv(63, 79%, 51%)
CMYKcmyk(4.6%, 0%, 79.4%, 48.6%)
CIE-LABlab(52.59, -15.19, 50.99)
CIE-LCHlch(52.59, 53.20, 106.59°)
OKLaboklab(58.61% -0.0473 0.1114)
OKLCHoklch(58.61% 0.121 113)
XYZxyz(16.7721, 20.6721, 4.1433)
Luminance0.2067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D831B #211B83
analogous
#83551B #7D831B #49831B
triadic
#7D831B #1B7D83 #831B7D
tetradic
#7D831B #1B8355 #211B83 #831B49
square
#7D831B #1B8355 #211B83 #831B49
split-complementary
#7D831B #1B4983 #551B83
monochromatic
#1C1E06 #4D5011 #7D831B #ADB625 #CFD841

Accessibility & contrast

On white

4.09
#7D831B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#7D831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D831B
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D831B#FFFFFF#000000##000000
##7D831B1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8D7F24
Tritanopia (blue-blind)
#867B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7d831b;
/* rgb */ color: rgb(125, 131, 27);
/* oklch */ color: oklch(58.6% 0.121 113.0);
Tailwind
colors: {
  custom: {
    50: '#a6a661',
    500: '#7d831b',
    950: '#000000',
  },
}
SCSS
$custom: #7d831b;
$custom-light: #a6a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7d831b",
  "rgb": {
    "r": 125,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 63.462,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.58608,
    "c": 0.12105,
    "h": 113
  },
  "luminance": 0.20672
}

Semantic roles & 50–950 ramp

primary
#7D831B
secondary
#4A43B6
accent
#3FE949
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D831B

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

Preview Lab → · Contrast checker → · Palette generator →

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