#7F7A17#7F7A17

#7F7A17 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.113 H 106.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F7A17
RGBrgb(127, 122, 23)
HSLhsl(57, 69%, 29%)
HSVhsv(57, 82%, 50%)
CMYKcmyk(0%, 3.9%, 81.9%, 50.2%)
CIE-LABlab(50.09, -9.56, 50.09)
CIE-LCHlch(50.09, 50.99, 100.80°)
OKLaboklab(56.65% -0.032 0.1086)
OKLCHoklch(56.65% 0.113 106.4)
XYZxyz(15.8673, 18.4936, 3.5442)
Luminance0.1849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7A17 #171C7F
analogous
#7F4617 #7F7A17 #507F17
triadic
#7F7A17 #177F7A #7A177F
tetradic
#7F7A17 #177F46 #171C7F #7F1750
square
#7F7A17 #177F46 #171C7F #7F1750
split-complementary
#7F7A17 #17507F #46177F
monochromatic
#1A1905 #4B480E #7F7A17 #B3AC20 #DBD336

Accessibility & contrast

On white

4.47
#7F7A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7F7A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7A17
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7A17#FFFFFF#000000##000000
##7F7A171.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#877920
Tritanopia (blue-blind)
#897168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f7a17;
/* rgb */ color: rgb(127, 122, 23);
/* oklch */ color: oklch(56.6% 0.113 106.4);
Tailwind
colors: {
  custom: {
    50: '#a8a05e',
    500: '#7f7a17',
    950: '#000000',
  },
}
SCSS
$custom: #7f7a17;
$custom-light: #a8a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7a17",
  "rgb": {
    "r": 127,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 57.115,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56646,
    "c": 0.11327,
    "h": 106.4
  },
  "luminance": 0.18493
}

Semantic roles & 50–950 ramp

primary
#7F7A17
secondary
#3E44B4
accent
#44EC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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