#7F8F17#7F8F17

#7F8F17 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.6% C 0.136 H 117.6°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7F8F17
RGBrgb(127, 143, 23)
HSLhsl(68, 72%, 33%)
HSVhsv(68, 84%, 56%)
CMYKcmyk(11.2%, 0%, 83.9%, 43.9%)
CIE-LABlab(56.31, -20.70, 55.53)
CIE-LCHlch(56.31, 59.26, 110.45°)
OKLaboklab(61.63% -0.0629 0.1203)
OKLCHoklch(61.63% 0.136 117.6)
XYZxyz(18.7300, 24.2190, 4.4985)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8F17 #27178F
analogous
#8F6317 #7F8F17 #438F17
triadic
#7F8F17 #177F8F #8F177F
tetradic
#7F8F17 #178F63 #27178F #8F1743
square
#7F8F17 #178F63 #27178F #8F1743
split-complementary
#7F8F17 #17438F #63178F
monochromatic
#212606 #505A0F #7F8F17 #AEC41F #CBE040

Accessibility & contrast

On white

3.59
#7F8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#7F8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8F17
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8F17#FFFFFF#000000##000000
##7F8F171.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#988824
Tritanopia (blue-blind)
#87867A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7f8f17;
/* rgb */ color: rgb(127, 143, 23);
/* oklch */ color: oklch(61.6% 0.136 117.6);
Tailwind
colors: {
  custom: {
    50: '#a8af61',
    500: '#7f8f17',
    950: '#000000',
  },
}
SCSS
$custom: #7f8f17;
$custom-light: #a8af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8f17",
  "rgb": {
    "r": 127,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 68,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61627,
    "c": 0.13577,
    "h": 117.6
  },
  "luminance": 0.24219
}

Semantic roles & 50–950 ramp

primary
#7F8F17
secondary
#5241C1
accent
#39EF51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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