#7D8532#7D8532

#7D8532 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.3% C 0.107 H 114.3°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7D8532
RGBrgb(125, 133, 50)
HSLhsl(66, 45%, 36%)
HSVhsv(66, 62%, 52%)
CMYKcmyk(6%, 0%, 62.4%, 47.8%)
CIE-LABlab(53.35, -14.89, 42.52)
CIE-LCHlch(53.35, 45.06, 109.30°)
OKLaboklab(59.27% -0.0441 0.0975)
OKLCHoklch(59.27% 0.107 114.3)
XYZxyz(17.4211, 21.3656, 6.2232)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8532 #3A3285
analogous
#856332 #7D8532 #538532
triadic
#7D8532 #327D85 #85327D
tetradic
#7D8532 #328563 #3A3285 #853253
square
#7D8532 #328563 #3A3285 #853253
split-complementary
#7D8532 #325385 #633285
monochromatic
#292C11 #535921 #7D8532 #A7B143 #BEC76A

Accessibility & contrast

On white

3.98
#7D8532 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7D8532 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8532
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8532#FFFFFF#000000##000000
##7D85321.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F28
Deuteranopia (green-blind)
#8E8037
Tritanopia (blue-blind)
#857E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7d8532;
/* rgb */ color: rgb(125, 133, 50);
/* oklch */ color: oklch(59.3% 0.107 114.3);
Tailwind
colors: {
  custom: {
    50: '#a5a86e',
    500: '#7d8532',
    950: '#000000',
  },
}
SCSS
$custom: #7d8532;
$custom-light: #a5a86e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8532",
  "rgb": {
    "r": 125,
    "g": 133,
    "b": 50
  },
  "hsl": {
    "h": 65.783,
    "s": 45.355,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59268,
    "c": 0.10702,
    "h": 114.3
  },
  "luminance": 0.21365
}

Semantic roles & 50–950 ramp

primary
#7D8532
secondary
#6B64AF
accent
#53D55F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7D8532

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

Preview Lab → · Contrast checker → · Palette generator →

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