#7F6A17#7F6A17

#7F6A17 is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 53.0% C 0.100 H 93.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7F6A17
RGBrgb(127, 106, 23)
HSLhsl(48, 69%, 29%)
HSVhsv(48, 82%, 50%)
CMYKcmyk(0%, 16.5%, 81.9%, 50.2%)
CIE-LABlab(45.47, -0.52, 45.97)
CIE-LCHlch(45.47, 45.97, 90.65°)
OKLaboklab(52.98% -0.0066 0.0998)
OKLCHoklch(52.98% 0.1 93.8)
XYZxyz(14.0619, 14.8828, 2.9425)
Luminance0.1488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6A17 #172C7F
analogous
#7F3617 #7F6A17 #607F17
triadic
#7F6A17 #177F6A #6A177F
tetradic
#7F6A17 #177F36 #172C7F #7F1760
square
#7F6A17 #177F36 #172C7F #7F1760
split-complementary
#7F6A17 #17607F #36177F
monochromatic
#1A1605 #4B3F0E #7F6A17 #B39520 #DBB936

Accessibility & contrast

On white

5.28
#7F6A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7F6A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6A17
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6A17#FFFFFF#000000##FFFFFF
##7F6A171.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#7C6E1D
Tritanopia (blue-blind)
#8A615A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7f6a17;
/* rgb */ color: rgb(127, 106, 23);
/* oklch */ color: oklch(53.0% 0.100 93.8);
Tailwind
colors: {
  custom: {
    50: '#a8945c',
    500: '#7f6a17',
    950: '#000000',
  },
}
SCSS
$custom: #7f6a17;
$custom-light: #a8945c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6a17",
  "rgb": {
    "r": 127,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 47.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52982,
    "c": 0.10001,
    "h": 93.8
  },
  "luminance": 0.14882
}

Semantic roles & 50–950 ramp

primary
#7F6A17
secondary
#3E56B4
accent
#5FEC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6A17

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

Preview Lab → · Contrast checker → · Palette generator →

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