#7F6E1B#7F6E1B

#7F6E1B is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.9% C 0.101 H 97.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7F6E1B
RGBrgb(127, 110, 27)
HSLhsl(50, 65%, 30%)
HSVhsv(50, 79%, 50%)
CMYKcmyk(0%, 13.4%, 78.7%, 50.2%)
CIE-LABlab(46.64, -2.65, 45.57)
CIE-LCHlch(46.64, 45.65, 93.33°)
OKLaboklab(53.91% -0.0122 0.0998)
OKLCHoklch(53.91% 0.101 97)
XYZxyz(14.5269, 15.7438, 3.3104)
Luminance0.1574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6E1B #1B2C7F
analogous
#7F3C1B #7F6E1B #5E7F1B
triadic
#7F6E1B #1B7F6E #6E1B7F
tetradic
#7F6E1B #1B7F3C #1B2C7F #7F1B5E
square
#7F6E1B #1B7F3C #1B2C7F #7F1B5E
split-complementary
#7F6E1B #1B5E7F #3C1B7F
monochromatic
#1A1706 #4D4210 #7F6E1B #B19A26 #D6BC3E

Accessibility & contrast

On white

5.06
#7F6E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7F6E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6E1B
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6E1B#FFFFFF#000000##FFFFFF
##7F6E1B1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B0B
Deuteranopia (green-blind)
#7E7120
Tritanopia (blue-blind)
#8A655E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f6e1b;
/* rgb */ color: rgb(127, 110, 27);
/* oklch */ color: oklch(53.9% 0.101 97.0);
Tailwind
colors: {
  custom: {
    50: '#a8975e',
    500: '#7f6e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7f6e1b;
$custom-light: #a8975e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6e1b",
  "rgb": {
    "r": 127,
    "g": 110,
    "b": 27
  },
  "hsl": {
    "h": 49.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5391,
    "c": 0.10056,
    "h": 97
  },
  "luminance": 0.15743
}

Semantic roles & 50–950 ramp

primary
#7F6E1B
secondary
#4356B3
accent
#5CE840
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7F6E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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