#7F661B#7F661B

#7F661B is a mid, moderate yellow. Relative luminance 0.141; OKLCH L 52.1% C 0.095 H 89.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7F661B
RGBrgb(127, 102, 27)
HSLhsl(45, 65%, 30%)
HSVhsv(45, 79%, 50%)
CMYKcmyk(0%, 19.7%, 78.7%, 50.2%)
CIE-LABlab(44.37, 1.96, 43.44)
CIE-LCHlch(44.37, 43.48, 87.41°)
OKLaboklab(52.12% 0.0009 0.0953)
OKLCHoklch(52.12% 0.095 89.4)
XYZxyz(13.7024, 14.0948, 3.0356)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F661B #1B347F
analogous
#7F341B #7F661B #667F1B
triadic
#7F661B #1B7F66 #661B7F
tetradic
#7F661B #1B7F34 #1B347F #7F1B66
square
#7F661B #1B7F34 #1B347F #7F1B66
split-complementary
#7F661B #1B667F #341B7F
monochromatic
#1A1506 #4D3D10 #7F661B #B18F26 #D6B03E

Accessibility & contrast

On white

5.50
#7F661B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7F661B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F661B
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F661B#FFFFFF#000000##FFFFFF
##7F661B1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73650E
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#8A5D57
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f661b;
/* rgb */ color: rgb(127, 102, 27);
/* oklch */ color: oklch(52.1% 0.095 89.4);
Tailwind
colors: {
  custom: {
    50: '#a8915d',
    500: '#7f661b',
    950: '#000000',
  },
}
SCSS
$custom: #7f661b;
$custom-light: #a8915d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f661b",
  "rgb": {
    "r": 127,
    "g": 102,
    "b": 27
  },
  "hsl": {
    "h": 45,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52118,
    "c": 0.09527,
    "h": 89.4
  },
  "luminance": 0.14094
}

Semantic roles & 50–950 ramp

primary
#7F661B
secondary
#435FB3
accent
#6AE840
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7F661B

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

Preview Lab → · Contrast checker → · Palette generator →

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