#7F8D2D#7F8D2D

#7F8D2D is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.120 H 117.2°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7F8D2D
RGBrgb(127, 141, 45)
HSLhsl(69, 52%, 36%)
HSVhsv(69, 68%, 55%)
CMYKcmyk(9.9%, 0%, 68.1%, 44.7%)
CIE-LABlab(55.84, -18.57, 47.42)
CIE-LCHlch(55.84, 50.93, 111.39°)
OKLaboklab(61.29% -0.0551 0.1071)
OKLCHoklch(61.29% 0.12 117.2)
XYZxyz(18.7513, 23.7514, 6.0788)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D2D #3B2D8D
analogous
#8D6B2D #7F8D2D #4F8D2D
triadic
#7F8D2D #2D7F8D #8D2D7F
tetradic
#7F8D2D #2D8D6B #3B2D8D #8D2D4F
square
#7F8D2D #2D8D6B #3B2D8D #8D2D4F
split-complementary
#7F8D2D #2D4F8D #6B2D8D
monochromatic
#2B300F #555F1E #7F8D2D #A9BB3C #BFCE66

Accessibility & contrast

On white

3.65
#7F8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#7F8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D2D
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D2D#FFFFFF#000000##000000
##7F8D2D1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#97851F
Deuteranopia (green-blind)
#958634
Tritanopia (blue-blind)
#87857A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d2d;
/* rgb */ color: rgb(127, 141, 45);
/* oklch */ color: oklch(61.3% 0.120 117.2);
Tailwind
colors: {
  custom: {
    50: '#a7ae6c',
    500: '#7f8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d2d;
$custom-light: #a7ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d2d",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 68.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61291,
    "c": 0.12038,
    "h": 117.2
  },
  "luminance": 0.23751
}

Semantic roles & 50–950 ramp

primary
#7F8D2D
secondary
#6D61B5
accent
#4DDB61
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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