#7F8E16#7F8E16

#7F8E16 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.135 H 117.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7F8E16
RGBrgb(127, 142, 22)
HSLhsl(68, 73%, 32%)
HSVhsv(68, 85%, 56%)
CMYKcmyk(10.6%, 0%, 84.5%, 44.3%)
CIE-LABlab(56.00, -20.23, 55.53)
CIE-LCHlch(56.00, 59.10, 110.01°)
OKLaboklab(61.38% -0.0616 0.1202)
OKLCHoklch(61.38% 0.135 117.2)
XYZxyz(18.5707, 23.9162, 4.3969)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E16 #25168E
analogous
#8E6116 #7F8E16 #438E16
triadic
#7F8E16 #167F8E #8E167F
tetradic
#7F8E16 #168E61 #25168E #8E1643
square
#7F8E16 #168E61 #25168E #8E1643
split-complementary
#7F8E16 #16438E #61168E
monochromatic
#202406 #50590E #7F8E16 #AEC31E #CDE13D

Accessibility & contrast

On white

3.63
#7F8E16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7F8E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8E16
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8E16#FFFFFF#000000##000000
##7F8E161.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#888579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8e16;
/* rgb */ color: rgb(127, 142, 22);
/* oklch */ color: oklch(61.4% 0.135 117.2);
Tailwind
colors: {
  custom: {
    50: '#a8af61',
    500: '#7f8e16',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e16;
$custom-light: #a8af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e16",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 22
  },
  "hsl": {
    "h": 67.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61382,
    "c": 0.13505,
    "h": 117.2
  },
  "luminance": 0.23916
}

Semantic roles & 50–950 ramp

primary
#7F8E16
secondary
#4F3FC1
accent
#38F04F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8E16

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

Preview Lab → · Contrast checker → · Palette generator →

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