#7D7E31#7D7E31

#7D7E31 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.099 H 109.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7D7E31
RGBrgb(125, 126, 49)
HSLhsl(61, 44%, 34%)
HSVhsv(61, 61%, 49%)
CMYKcmyk(0.8%, 0%, 61.1%, 50.6%)
CIE-LABlab(51.27, -11.19, 40.72)
CIE-LCHlch(51.27, 42.23, 105.37°)
OKLaboklab(57.61% -0.0338 0.0935)
OKLCHoklch(57.61% 0.099 109.8)
XYZxyz(16.4731, 19.5039, 5.8020)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7E31 #32317E
analogous
#7E5931 #7D7E31 #577E31
triadic
#7D7E31 #317D7E #7E317D
tetradic
#7D7E31 #317E59 #32317E #7E3157
square
#7D7E31 #317E59 #32317E #7E3157
split-complementary
#7D7E31 #31577E #59317E
monochromatic
#26260F #515220 #7D7E31 #A9AA42 #C2C366

Accessibility & contrast

On white

4.29
#7D7E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7D7E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7E31
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7E31#FFFFFF#000000##000000
##7D7E311.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887928
Deuteranopia (green-blind)
#887B36
Tritanopia (blue-blind)
#85766E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7e31;
/* rgb */ color: rgb(125, 126, 49);
/* oklch */ color: oklch(57.6% 0.099 109.8);
Tailwind
colors: {
  custom: {
    50: '#a5a36d',
    500: '#7d7e31',
    950: '#000000',
  },
}
SCSS
$custom: #7d7e31;
$custom-light: #a5a36d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7e31",
  "rgb": {
    "r": 125,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 60.779,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57606,
    "c": 0.09946,
    "h": 109.8
  },
  "luminance": 0.19503
}

Semantic roles & 50–950 ramp

primary
#7D7E31
secondary
#6160AB
accent
#54D456
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7D7E31

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

Preview Lab → · Contrast checker → · Palette generator →

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