#7F6817#7F6817

#7F6817 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.5% C 0.099 H 91.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F6817
RGBrgb(127, 104, 23)
HSLhsl(47, 69%, 29%)
HSVhsv(47, 82%, 50%)
CMYKcmyk(0%, 18.1%, 81.9%, 50.2%)
CIE-LABlab(44.91, 0.63, 45.46)
CIE-LCHlch(44.91, 45.46, 89.20°)
OKLaboklab(52.54% -0.0033 0.0987)
OKLCHoklch(52.54% 0.099 91.9)
XYZxyz(13.8582, 14.4754, 2.8746)
Luminance0.1447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6817 #172E7F
analogous
#7F3417 #7F6817 #627F17
triadic
#7F6817 #177F68 #68177F
tetradic
#7F6817 #177F34 #172E7F #7F1762
square
#7F6817 #177F34 #172E7F #7F1762
split-complementary
#7F6817 #17627F #34177F
monochromatic
#1A1505 #4B3E0E #7F6817 #B39220 #DBB636

Accessibility & contrast

On white

5.39
#7F6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6817
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6817#FFFFFF#000000##FFFFFF
##7F68171.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756605
Deuteranopia (green-blind)
#7A6D1C
Tritanopia (blue-blind)
#8A5F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f6817;
/* rgb */ color: rgb(127, 104, 23);
/* oklch */ color: oklch(52.5% 0.099 91.9);
Tailwind
colors: {
  custom: {
    50: '#a8925c',
    500: '#7f6817',
    950: '#000000',
  },
}
SCSS
$custom: #7f6817;
$custom-light: #a8925c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6817",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 46.731,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52535,
    "c": 0.09875,
    "h": 91.9
  },
  "luminance": 0.14475
}

Semantic roles & 50–950 ramp

primary
#7F6817
secondary
#3E58B4
accent
#63EC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7F6817

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

Preview Lab → · Contrast checker → · Palette generator →

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