#7E671B#7E671B

#7E671B is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.2% C 0.096 H 91.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7E671B
RGBrgb(126, 103, 27)
HSLhsl(46, 65%, 30%)
HSVhsv(46, 79%, 49%)
CMYKcmyk(0%, 18.3%, 78.6%, 50.6%)
CIE-LABlab(44.54, 0.90, 43.56)
CIE-LCHlch(44.54, 43.57, 88.81°)
OKLaboklab(52.23% -0.0021 0.0956)
OKLCHoklch(52.23% 0.096 91.2)
XYZxyz(13.6530, 14.2161, 3.0616)
Luminance0.1421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E671B #1B327E
analogous
#7E361B #7E671B #637E1B
triadic
#7E671B #1B7E67 #671B7E
tetradic
#7E671B #1B7E36 #1B327E #7E1B63
square
#7E671B #1B7E36 #1B327E #7E1B63
split-complementary
#7E671B #1B637E #361B7E
monochromatic
#191505 #4C3E10 #7E671B #B09026 #D6B23E

Accessibility & contrast

On white

5.46
#7E671B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7E671B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E671B
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E671B#FFFFFF#000000##FFFFFF
##7E671B1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73660D
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#895E58
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e671b;
/* rgb */ color: rgb(126, 103, 27);
/* oklch */ color: oklch(52.2% 0.096 91.2);
Tailwind
colors: {
  custom: {
    50: '#a7925e',
    500: '#7e671b',
    950: '#000000',
  },
}
SCSS
$custom: #7e671b;
$custom-light: #a7925e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e671b",
  "rgb": {
    "r": 126,
    "g": 103,
    "b": 27
  },
  "hsl": {
    "h": 46.061,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52229,
    "c": 0.0956,
    "h": 91.2
  },
  "luminance": 0.14215
}

Semantic roles & 50–950 ramp

primary
#7E671B
secondary
#435DB2
accent
#67E840
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C05
muted
#7F7D79

Preview Lab

Preview with #7E671B

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

Preview Lab → · Contrast checker → · Palette generator →

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