#7F7E17#7F7E17

#7F7E17 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.117 H 109.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F7E17
RGBrgb(127, 126, 23)
HSLhsl(59, 69%, 29%)
HSVhsv(59, 82%, 50%)
CMYKcmyk(0%, 0.8%, 81.9%, 50.2%)
CIE-LABlab(51.26, -11.74, 51.12)
CIE-LCHlch(51.26, 52.46, 102.94°)
OKLaboklab(57.58% -0.0382 0.1109)
OKLCHoklch(57.58% 0.117 109)
XYZxyz(16.3686, 19.4961, 3.7113)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E17 #17187F
analogous
#7F4A17 #7F7E17 #4C7F17
triadic
#7F7E17 #177F7E #7E177F
tetradic
#7F7E17 #177F4A #17187F #7F174C
square
#7F7E17 #177F4A #17187F #7F174C
split-complementary
#7F7E17 #174C7F #4A177F
monochromatic
#1A1A05 #4B4B0E #7F7E17 #B3B120 #DBD936

Accessibility & contrast

On white

4.29
#7F7E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7F7E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7E17
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7E17#FFFFFF#000000##000000
##7F7E171.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7C20
Tritanopia (blue-blind)
#89756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e17;
/* rgb */ color: rgb(127, 126, 23);
/* oklch */ color: oklch(57.6% 0.117 109.0);
Tailwind
colors: {
  custom: {
    50: '#a8a35f',
    500: '#7f7e17',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e17;
$custom-light: #a8a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e17",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 59.423,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57583,
    "c": 0.11725,
    "h": 109
  },
  "luminance": 0.19496
}

Semantic roles & 50–950 ramp

primary
#7F7E17
secondary
#3E3FB4
accent
#3DEC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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