#7F7C17#7F7C17

#7F7C17 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.1% C 0.115 H 107.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7F7C17
RGBrgb(127, 124, 23)
HSLhsl(58, 69%, 29%)
HSVhsv(58, 82%, 50%)
CMYKcmyk(0%, 2.4%, 81.9%, 50.2%)
CIE-LABlab(50.68, -10.65, 50.61)
CIE-LCHlch(50.68, 51.72, 101.89°)
OKLaboklab(57.11% -0.0351 0.1098)
OKLCHoklch(57.11% 0.115 107.7)
XYZxyz(16.1154, 18.9898, 3.6269)
Luminance0.1899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7C17 #171A7F
analogous
#7F4817 #7F7C17 #4E7F17
triadic
#7F7C17 #177F7C #7C177F
tetradic
#7F7C17 #177F48 #171A7F #7F174E
square
#7F7C17 #177F48 #171A7F #7F174E
split-complementary
#7F7C17 #174E7F #48177F
monochromatic
#1A1905 #4B490E #7F7C17 #B3AF20 #DBD636

Accessibility & contrast

On white

4.38
#7F7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#7F7C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7C17
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7C17#FFFFFF#000000##000000
##7F7C171.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#897A20
Tritanopia (blue-blind)
#89736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7c17;
/* rgb */ color: rgb(127, 124, 23);
/* oklch */ color: oklch(57.1% 0.115 107.7);
Tailwind
colors: {
  custom: {
    50: '#a8a15f',
    500: '#7f7c17',
    950: '#000000',
  },
}
SCSS
$custom: #7f7c17;
$custom-light: #a8a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7c17",
  "rgb": {
    "r": 127,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 58.269,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57114,
    "c": 0.11523,
    "h": 107.7
  },
  "luminance": 0.18989
}

Semantic roles & 50–950 ramp

primary
#7F7C17
secondary
#3E42B4
accent
#41EC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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