#7F8017#7F8017

#7F8017 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.119 H 110.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7F8017
RGBrgb(127, 128, 23)
HSLhsl(61, 70%, 30%)
HSVhsv(61, 82%, 50%)
CMYKcmyk(0.8%, 0%, 82%, 49.8%)
CIE-LABlab(51.85, -12.83, 51.64)
CIE-LCHlch(51.85, 53.21, 103.95°)
OKLaboklab(58.05% -0.0412 0.112)
OKLCHoklch(58.05% 0.119 110.2)
XYZxyz(16.6269, 20.0127, 3.7974)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8017 #181780
analogous
#804C17 #7F8017 #4B8017
triadic
#7F8017 #177F80 #80177F
tetradic
#7F8017 #17804C #181780 #80174B
square
#7F8017 #17804C #181780 #80174B
split-complementary
#7F8017 #174B80 #4C1780
monochromatic
#1A1A05 #4C4C0E #7F8017 #B2B420 #D9DB36

Accessibility & contrast

On white

4.20
#7F8017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7F8017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8017
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8017#FFFFFF#000000##000000
##7F80171.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D21
Tritanopia (blue-blind)
#89776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8017;
/* rgb */ color: rgb(127, 128, 23);
/* oklch */ color: oklch(58.1% 0.119 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a45f',
    500: '#7f8017',
    950: '#000000',
  },
}
SCSS
$custom: #7f8017;
$custom-light: #a8a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8017",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 60.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.58053,
    "c": 0.1193,
    "h": 110.2
  },
  "luminance": 0.20012
}

Semantic roles & 50–950 ramp

primary
#7F8017
secondary
#3F3EB4
accent
#3BEC3D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8017

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

Preview Lab → · Contrast checker → · Palette generator →

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