#7F7217#7F7217

#7F7217 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.106 H 100.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F7217
RGBrgb(127, 114, 23)
HSLhsl(53, 69%, 29%)
HSVhsv(53, 82%, 50%)
CMYKcmyk(0%, 10.2%, 81.9%, 50.2%)
CIE-LABlab(47.76, -5.09, 48.02)
CIE-LCHlch(47.76, 48.29, 96.05°)
OKLaboklab(54.8% -0.0195 0.1042)
OKLCHoklch(54.8% 0.106 100.6)
XYZxyz(14.9251, 16.6092, 3.2302)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7217 #17247F
analogous
#7F3E17 #7F7217 #587F17
triadic
#7F7217 #177F72 #72177F
tetradic
#7F7217 #177F3E #17247F #7F1758
square
#7F7217 #177F3E #17247F #7F1758
split-complementary
#7F7217 #17587F #3E177F
monochromatic
#1A1705 #4B430E #7F7217 #B3A120 #DBC636

Accessibility & contrast

On white

4.86
#7F7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7217
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7217#FFFFFF#000000##FFFFFF
##7F72171.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#81731E
Tritanopia (blue-blind)
#896961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7217;
/* rgb */ color: rgb(127, 114, 23);
/* oklch */ color: oklch(54.8% 0.106 100.6);
Tailwind
colors: {
  custom: {
    50: '#a89a5d',
    500: '#7f7217',
    950: '#000000',
  },
}
SCSS
$custom: #7f7217;
$custom-light: #a89a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7217",
  "rgb": {
    "r": 127,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 52.5,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54796,
    "c": 0.10602,
    "h": 100.6
  },
  "luminance": 0.16609
}

Semantic roles & 50–950 ramp

primary
#7F7217
secondary
#3E4DB4
accent
#52EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7217

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

Preview Lab → · Contrast checker → · Palette generator →

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