#7F7017#7F7017

#7F7017 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.104 H 99.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7F7017
RGBrgb(127, 112, 23)
HSLhsl(51, 69%, 29%)
HSVhsv(51, 82%, 50%)
CMYKcmyk(0%, 11.8%, 81.9%, 50.2%)
CIE-LABlab(47.19, -3.96, 47.51)
CIE-LCHlch(47.19, 47.67, 94.77°)
OKLaboklab(54.34% -0.0163 0.1031)
OKLCHoklch(54.34% 0.104 99)
XYZxyz(14.7020, 16.1630, 3.1558)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7017 #17267F
analogous
#7F3C17 #7F7017 #5A7F17
triadic
#7F7017 #177F70 #70177F
tetradic
#7F7017 #177F3C #17267F #7F175A
square
#7F7017 #177F3C #17267F #7F175A
split-complementary
#7F7017 #175A7F #3C177F
monochromatic
#1A1705 #4B420E #7F7017 #B39E20 #DBC336

Accessibility & contrast

On white

4.96
#7F7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7F7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7017
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7017#FFFFFF#000000##FFFFFF
##7F70171.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#8A675F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f7017;
/* rgb */ color: rgb(127, 112, 23);
/* oklch */ color: oklch(54.3% 0.104 99.0);
Tailwind
colors: {
  custom: {
    50: '#a8985d',
    500: '#7f7017',
    950: '#000000',
  },
}
SCSS
$custom: #7f7017;
$custom-light: #a8985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7017",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 51.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54339,
    "c": 0.10439,
    "h": 99
  },
  "luminance": 0.16162
}

Semantic roles & 50–950 ramp

primary
#7F7017
secondary
#3E4FB4
accent
#55EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F7017

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

Preview Lab → · Contrast checker → · Palette generator →

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