#7F8F1D#7F8F1D

#7F8F1D is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.7% C 0.133 H 117.7°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7F8F1D
RGBrgb(127, 143, 29)
HSLhsl(68, 66%, 34%)
HSVhsv(68, 80%, 56%)
CMYKcmyk(11.2%, 0%, 79.7%, 43.9%)
CIE-LABlab(56.33, -20.47, 53.81)
CIE-LCHlch(56.33, 57.57, 110.83°)
OKLaboklab(61.66% -0.0618 0.1177)
OKLCHoklch(61.66% 0.133 117.7)
XYZxyz(18.7971, 24.2459, 4.8518)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8F1D #2D1D8F
analogous
#8F661D #7F8F1D #468F1D
triadic
#7F8F1D #1D7F8F #8F1D7F
tetradic
#7F8F1D #1D8F66 #2D1D8F #8F1D46
square
#7F8F1D #1D8F66 #2D1D8F #8F1D46
split-complementary
#7F8F1D #1D468F #661D8F
monochromatic
#252908 #525C13 #7F8F1D #ACC227 #C7DB4C

Accessibility & contrast

On white

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

On black

5.85
#7F8F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8F1D
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8F1D#FFFFFF#000000##000000
##7F8F1D1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8f1d;
/* rgb */ color: rgb(127, 143, 29);
/* oklch */ color: oklch(61.7% 0.133 117.7);
Tailwind
colors: {
  custom: {
    50: '#a7af64',
    500: '#7f8f1d',
    950: '#000000',
  },
}
SCSS
$custom: #7f8f1d;
$custom-light: #a7af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8f1d",
  "rgb": {
    "r": 127,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 68.421,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61657,
    "c": 0.13296,
    "h": 117.7
  },
  "luminance": 0.24246
}

Semantic roles & 50–950 ramp

primary
#7F8F1D
secondary
#5B4BBD
accent
#3FE957
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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