#7E671F#7E671F

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

Color values

HEX#7E671F
RGBrgb(126, 103, 31)
HSLhsl(45, 61%, 31%)
HSVhsv(45, 75%, 49%)
CMYKcmyk(0%, 18.3%, 75.4%, 50.6%)
CIE-LABlab(44.57, 1.10, 41.93)
CIE-LCHlch(44.57, 41.95, 88.50°)
OKLaboklab(52.26% -0.001 0.093)
OKLCHoklch(52.26% 0.093 90.6)
XYZxyz(13.7025, 14.2359, 3.3221)
Luminance0.1424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E671F #1F367E
analogous
#7E371F #7E671F #657E1F
triadic
#7E671F #1F7E67 #671F7E
tetradic
#7E671F #1F7E37 #1F367E #7E1F65
square
#7E671F #1F7E37 #1F367E #7E1F65
split-complementary
#7E671F #1F657E #371F7E
monochromatic
#1C1707 #4D3F13 #7E671F #AF8F2B #D1B046

Accessibility & contrast

On white

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

On black

3.85
#7E671F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E671F#FFFFFF#000000##FFFFFF
##7E671F1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736614
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#895E59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e671f;
/* rgb */ color: rgb(126, 103, 31);
/* oklch */ color: oklch(52.3% 0.093 90.6);
Tailwind
colors: {
  custom: {
    50: '#a79260',
    500: '#7e671f',
    950: '#000000',
  },
}
SCSS
$custom: #7e671f;
$custom-light: #a79260;
$custom-dark: #000000;
JSON
{
  "hex": "#7e671f",
  "rgb": {
    "r": 126,
    "g": 103,
    "b": 31
  },
  "hsl": {
    "h": 45.474,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5226,
    "c": 0.09298,
    "h": 90.6
  },
  "luminance": 0.14235
}

Semantic roles & 50–950 ramp

primary
#7E671F
secondary
#4861B1
accent
#6BE444
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#100C05
muted
#7F7D79

Preview Lab

Preview with #7E671F

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

Preview Lab → · Contrast checker → · Palette generator →

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