#7F6916#7F6916

#7F6916 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.8% C 0.100 H 93.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7F6916
RGBrgb(127, 105, 22)
HSLhsl(47, 70%, 29%)
HSVhsv(47, 83%, 50%)
CMYKcmyk(0%, 17.3%, 82.7%, 50.2%)
CIE-LABlab(45.18, 0.02, 46.06)
CIE-LCHlch(45.18, 46.06, 89.98°)
OKLaboklab(52.75% -0.0052 0.0998)
OKLCHoklch(52.75% 0.1 93)
XYZxyz(13.9496, 14.6740, 2.8565)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6916 #162C7F
analogous
#7F3516 #7F6916 #617F16
triadic
#7F6916 #167F69 #69167F
tetradic
#7F6916 #167F35 #162C7F #7F1661
square
#7F6916 #167F35 #162C7F #7F1661
split-complementary
#7F6916 #16617F #35167F
monochromatic
#1A1605 #4B3E0D #7F6916 #B3941F #DCB934

Accessibility & contrast

On white

5.34
#7F6916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7F6916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6916
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6916#FFFFFF#000000##FFFFFF
##7F69161.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#7B6E1C
Tritanopia (blue-blind)
#8A605A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f6916;
/* rgb */ color: rgb(127, 105, 22);
/* oklch */ color: oklch(52.8% 0.100 93.0);
Tailwind
colors: {
  custom: {
    50: '#a8935b',
    500: '#7f6916',
    950: '#000000',
  },
}
SCSS
$custom: #7f6916;
$custom-light: #a8935b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6916",
  "rgb": {
    "r": 127,
    "g": 105,
    "b": 22
  },
  "hsl": {
    "h": 47.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52752,
    "c": 0.09989,
    "h": 93
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#7F6916
secondary
#3D56B4
accent
#60ED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6916

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

Preview Lab → · Contrast checker → · Palette generator →

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