#7D7231#7D7231

#7D7231 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.087 H 99.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7D7231
RGBrgb(125, 114, 49)
HSLhsl(51, 44%, 34%)
HSVhsv(51, 61%, 49%)
CMYKcmyk(0%, 8.8%, 60.8%, 51%)
CIE-LABlab(47.77, -4.51, 36.83)
CIE-LCHlch(47.77, 37.11, 96.98°)
OKLaboklab(54.82% -0.0147 0.0853)
OKLCHoklch(54.82% 0.087 99.8)
XYZxyz(15.0297, 16.6170, 5.3208)
Luminance0.1662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7231 #313C7D
analogous
#7D4C31 #7D7231 #627D31
triadic
#7D7231 #317D72 #72317D
tetradic
#7D7231 #317D4C #313C7D #7D3162
square
#7D7231 #317D4C #313C7D #7D3162
split-complementary
#7D7231 #31627D #4C317D
monochromatic
#25220F #514A20 #7D7231 #A99A42 #C3B566

Accessibility & contrast

On white

4.86
#7D7231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7D7231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7231
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7231#FFFFFF#000000##FFFFFF
##7D72311.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2A
Deuteranopia (green-blind)
#7F7334
Tritanopia (blue-blind)
#866A64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7d7231;
/* rgb */ color: rgb(125, 114, 49);
/* oklch */ color: oklch(54.8% 0.087 99.8);
Tailwind
colors: {
  custom: {
    50: '#a59a6c',
    500: '#7d7231',
    950: '#000000',
  },
}
SCSS
$custom: #7d7231;
$custom-light: #a59a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7231",
  "rgb": {
    "r": 125,
    "g": 114,
    "b": 49
  },
  "hsl": {
    "h": 51.316,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54824,
    "c": 0.08652,
    "h": 99.8
  },
  "luminance": 0.16616
}

Semantic roles & 50–950 ramp

primary
#7D7231
secondary
#606AAA
accent
#67D354
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #7D7231

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

Preview Lab → · Contrast checker → · Palette generator →

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