#7F671B#7F671B

#7F671B is a mid, moderate yellow. Relative luminance 0.143; OKLCH L 52.3% C 0.096 H 90.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7F671B
RGBrgb(127, 103, 27)
HSLhsl(46, 65%, 30%)
HSVhsv(46, 79%, 50%)
CMYKcmyk(0%, 18.9%, 78.7%, 50.2%)
CIE-LABlab(44.65, 1.38, 43.71)
CIE-LCHlch(44.65, 43.73, 88.19°)
OKLaboklab(52.34% -0.0007 0.0958)
OKLCHoklch(52.34% 0.096 90.4)
XYZxyz(13.8013, 14.2925, 3.0685)
Luminance0.1429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F671B #1B337F
analogous
#7F351B #7F671B #657F1B
triadic
#7F671B #1B7F67 #671B7F
tetradic
#7F671B #1B7F35 #1B337F #7F1B65
square
#7F671B #1B7F35 #1B337F #7F1B65
split-complementary
#7F671B #1B657F #351B7F
monochromatic
#1A1506 #4D3E10 #7F671B #B19026 #D6B23E

Accessibility & contrast

On white

5.44
#7F671B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7F671B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F671B
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F671B#FFFFFF#000000##FFFFFF
##7F671B1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73660D
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#8A5E58
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f671b;
/* rgb */ color: rgb(127, 103, 27);
/* oklch */ color: oklch(52.3% 0.096 90.4);
Tailwind
colors: {
  custom: {
    50: '#a8925e',
    500: '#7f671b',
    950: '#000000',
  },
}
SCSS
$custom: #7f671b;
$custom-light: #a8925e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f671b",
  "rgb": {
    "r": 127,
    "g": 103,
    "b": 27
  },
  "hsl": {
    "h": 45.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5234,
    "c": 0.09583,
    "h": 90.4
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#7F671B
secondary
#435EB3
accent
#68E840
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C05
muted
#7F7D79

Preview Lab

Preview with #7F671B

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

Preview Lab → · Contrast checker → · Palette generator →

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