#7F8D15#7F8D15

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

Color values

HEX#7F8D15
RGBrgb(127, 141, 21)
HSLhsl(67, 74%, 32%)
HSVhsv(67, 85%, 55%)
CMYKcmyk(9.9%, 0%, 85.1%, 44.7%)
CIE-LABlab(55.70, -19.75, 55.53)
CIE-LCHlch(55.70, 58.93, 109.58°)
OKLaboklab(61.14% -0.0604 0.12)
OKLCHoklch(61.14% 0.134 116.7)
XYZxyz(18.4131, 23.6162, 4.2977)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D15 #23158D
analogous
#8D5F15 #7F8D15 #438D15
triadic
#7F8D15 #157F8D #8D157F
tetradic
#7F8D15 #158D5F #23158D #8D1543
square
#7F8D15 #158D5F #23158D #8D1543
split-complementary
#7F8D15 #15438D #5F158D
monochromatic
#1F2205 #4F580D #7F8D15 #AFC21D #CEE23B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8D15#FFFFFF#000000##000000
##7F8D151.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)
#968622
Tritanopia (blue-blind)
#888478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7f8d15;
/* rgb */ color: rgb(127, 141, 21);
/* oklch */ color: oklch(61.1% 0.134 116.7);
Tailwind
colors: {
  custom: {
    50: '#a8ae60',
    500: '#7f8d15',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d15;
$custom-light: #a8ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d15",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 67,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61138,
    "c": 0.13432,
    "h": 116.7
  },
  "luminance": 0.23616
}

Semantic roles & 50–950 ramp

primary
#7F8D15
secondary
#4C3DC1
accent
#37F14D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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