#7E661B#7E661B

#7E661B is a mid, moderate yellow. Relative luminance 0.140; OKLCH L 52.0% C 0.095 H 90.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7E661B
RGBrgb(126, 102, 27)
HSLhsl(45, 65%, 30%)
HSVhsv(45, 79%, 49%)
CMYKcmyk(0%, 19%, 78.6%, 50.6%)
CIE-LABlab(44.26, 1.49, 43.30)
CIE-LCHlch(44.26, 43.32, 88.03°)
OKLaboklab(52.01% -0.0004 0.095)
OKLCHoklch(52.01% 0.095 90.2)
XYZxyz(13.5542, 14.0184, 3.0286)
Luminance0.1402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E661B #1B337E
analogous
#7E351B #7E661B #647E1B
triadic
#7E661B #1B7E66 #661B7E
tetradic
#7E661B #1B7E35 #1B337E #7E1B64
square
#7E661B #1B7E35 #1B337E #7E1B64
split-complementary
#7E661B #1B647E #351B7E
monochromatic
#191405 #4C3D10 #7E661B #B08F26 #D6B13E

Accessibility & contrast

On white

5.52
#7E661B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7E661B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E661B
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E661B#FFFFFF#000000##FFFFFF
##7E661B1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72650E
Deuteranopia (green-blind)
#786B1F
Tritanopia (blue-blind)
#895D57
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e661b;
/* rgb */ color: rgb(126, 102, 27);
/* oklch */ color: oklch(52.0% 0.095 90.2);
Tailwind
colors: {
  custom: {
    50: '#a7915d',
    500: '#7e661b',
    950: '#000000',
  },
}
SCSS
$custom: #7e661b;
$custom-light: #a7915d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e661b",
  "rgb": {
    "r": 126,
    "g": 102,
    "b": 27
  },
  "hsl": {
    "h": 45.455,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.09501,
    "h": 90.2
  },
  "luminance": 0.14017
}

Semantic roles & 50–950 ramp

primary
#7E661B
secondary
#435EB2
accent
#69E840
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7E661B

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

Preview Lab → · Contrast checker → · Palette generator →

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