#7F7331#7F7331

#7F7331 is a mid, moderate yellow. Relative luminance 0.170; OKLCH L 55.3% C 0.088 H 99.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7F7331
RGBrgb(127, 115, 49)
HSLhsl(51, 44%, 35%)
HSVhsv(51, 61%, 50%)
CMYKcmyk(0%, 9.4%, 61.4%, 50.2%)
CIE-LABlab(48.25, -4.15, 37.43)
CIE-LCHlch(48.25, 37.66, 96.33°)
OKLaboklab(55.25% -0.0138 0.0865)
OKLCHoklch(55.25% 0.088 99.1)
XYZxyz(15.4381, 16.9959, 5.3725)
Luminance0.1699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7331 #313D7F
analogous
#7F4C31 #7F7331 #647F31
triadic
#7F7331 #317F73 #73317F
tetradic
#7F7331 #317F4C #313D7F #7F3164
square
#7F7331 #317F4C #313D7F #7F3164
split-complementary
#7F7331 #31647F #4C317F
monochromatic
#27230F #534B20 #7F7331 #AB9B42 #C4B666

Accessibility & contrast

On white

4.77
#7F7331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7F7331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7331
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7331#FFFFFF#000000##FFFFFF
##7F73311.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D702A
Deuteranopia (green-blind)
#817434
Tritanopia (blue-blind)
#886B65
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7331;
/* rgb */ color: rgb(127, 115, 49);
/* oklch */ color: oklch(55.3% 0.088 99.1);
Tailwind
colors: {
  custom: {
    50: '#a69b6c',
    500: '#7f7331',
    950: '#000000',
  },
}
SCSS
$custom: #7f7331;
$custom-light: #a69b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7331",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 50.769,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.55251,
    "c": 0.08758,
    "h": 99.1
  },
  "luminance": 0.16995
}

Semantic roles & 50–950 ramp

primary
#7F7331
secondary
#606CAB
accent
#67D454
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #7F7331

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

Preview Lab → · Contrast checker → · Palette generator →

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