#7F671F#7F671F

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

Color values

HEX#7F671F
RGBrgb(127, 103, 31)
HSLhsl(45, 61%, 31%)
HSVhsv(45, 76%, 50%)
CMYKcmyk(0%, 18.9%, 75.6%, 50.2%)
CIE-LABlab(44.68, 1.58, 42.08)
CIE-LCHlch(44.68, 42.11, 87.86°)
OKLaboklab(52.37% 0.0003 0.0932)
OKLCHoklch(52.37% 0.093 89.8)
XYZxyz(13.8508, 14.3123, 3.3291)
Luminance0.1431 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F671F #1F377F
analogous
#7F371F #7F671F #677F1F
triadic
#7F671F #1F7F67 #671F7F
tetradic
#7F671F #1F7F37 #1F377F #7F1F67
square
#7F671F #1F7F37 #1F377F #7F1F67
split-complementary
#7F671F #1F677F #371F7F
monochromatic
#1D1707 #4E3F13 #7F671F #B08F2B #D2AF46

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F671F#FFFFFF#000000##FFFFFF
##7F671F1.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)
#736614
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#8A5E59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f671f;
/* rgb */ color: rgb(127, 103, 31);
/* oklch */ color: oklch(52.4% 0.093 89.8);
Tailwind
colors: {
  custom: {
    50: '#a89260',
    500: '#7f671f',
    950: '#000000',
  },
}
SCSS
$custom: #7f671f;
$custom-light: #a89260;
$custom-dark: #000000;
JSON
{
  "hex": "#7f671f",
  "rgb": {
    "r": 127,
    "g": 103,
    "b": 31
  },
  "hsl": {
    "h": 45,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52371,
    "c": 0.09323,
    "h": 89.8
  },
  "luminance": 0.14311
}

Semantic roles & 50–950 ramp

primary
#7F671F
secondary
#4862B2
accent
#6CE444
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#100C05
muted
#7F7D79

Preview Lab

Preview with #7F671F

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

Preview Lab → · Contrast checker → · Palette generator →

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