#7F8D17#7F8D17

#7F8D17 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.133 H 116.7°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7F8D17
RGBrgb(127, 141, 23)
HSLhsl(67, 72%, 32%)
HSVhsv(67, 84%, 55%)
CMYKcmyk(9.9%, 0%, 83.7%, 44.7%)
CIE-LABlab(55.71, -19.68, 55.01)
CIE-LCHlch(55.71, 58.42, 109.68°)
OKLaboklab(61.15% -0.0601 0.1192)
OKLCHoklch(61.15% 0.133 116.7)
XYZxyz(18.4324, 23.6239, 4.3993)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D17 #25178D
analogous
#8D6017 #7F8D17 #448D17
triadic
#7F8D17 #177F8D #8D177F
tetradic
#7F8D17 #178D60 #25178D #8D1744
square
#7F8D17 #178D60 #25178D #8D1744
split-complementary
#7F8D17 #17448D #60178D
monochromatic
#202406 #50580E #7F8D17 #AEC220 #CDE03F

Accessibility & contrast

On white

3.67
#7F8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7F8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D17
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D17#FFFFFF#000000##000000
##7F8D171.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#888478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7f8d17;
/* rgb */ color: rgb(127, 141, 23);
/* oklch */ color: oklch(61.1% 0.133 116.7);
Tailwind
colors: {
  custom: {
    50: '#a8ae61',
    500: '#7f8d17',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d17;
$custom-light: #a8ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d17",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 67.119,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61147,
    "c": 0.13349,
    "h": 116.7
  },
  "luminance": 0.23624
}

Semantic roles & 50–950 ramp

primary
#7F8D17
secondary
#4F40C0
accent
#39EF4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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