#7F661A#7F661A

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

Color values

HEX#7F661A
RGBrgb(127, 102, 26)
HSLhsl(45, 66%, 30%)
HSVhsv(45, 80%, 50%)
CMYKcmyk(0%, 19.7%, 79.5%, 50.2%)
CIE-LABlab(44.36, 1.92, 43.83)
CIE-LCHlch(44.36, 43.87, 87.49°)
OKLaboklab(52.11% 0.0007 0.0959)
OKLCHoklch(52.11% 0.096 89.6)
XYZxyz(13.6910, 14.0902, 2.9757)
Luminance0.1409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F661A #1A337F
analogous
#7F341A #7F661A #657F1A
triadic
#7F661A #1A7F66 #661A7F
tetradic
#7F661A #1A7F34 #1A337F #7F1A65
square
#7F661A #1A7F34 #1A337F #7F1A65
split-complementary
#7F661A #1A657F #341A7F
monochromatic
#191405 #4C3D10 #7F661A #B28F24 #D7B13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F661A#FFFFFF#000000##FFFFFF
##7F661A1.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)
#73650C
Deuteranopia (green-blind)
#796C1E
Tritanopia (blue-blind)
#8A5D57
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f661a;
/* rgb */ color: rgb(127, 102, 26);
/* oklch */ color: oklch(52.1% 0.096 89.6);
Tailwind
colors: {
  custom: {
    50: '#a8915d',
    500: '#7f661a',
    950: '#000000',
  },
}
SCSS
$custom: #7f661a;
$custom-light: #a8915d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f661a",
  "rgb": {
    "r": 127,
    "g": 102,
    "b": 26
  },
  "hsl": {
    "h": 45.149,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.52111,
    "c": 0.09587,
    "h": 89.6
  },
  "luminance": 0.14089
}

Semantic roles & 50–950 ramp

primary
#7F661A
secondary
#425EB3
accent
#69E93F
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7F661A

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

Preview Lab → · Contrast checker → · Palette generator →

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