#7D8F1D#7D8F1D

#7D8F1D is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.5% C 0.134 H 118.6°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7D8F1D
RGBrgb(125, 143, 29)
HSLhsl(69, 66%, 34%)
HSVhsv(69, 80%, 56%)
CMYKcmyk(12.6%, 0%, 79.7%, 43.9%)
CIE-LABlab(56.18, -21.35, 53.61)
CIE-LCHlch(56.18, 57.71, 111.71°)
OKLaboklab(61.5% -0.0641 0.1174)
OKLCHoklch(61.5% 0.134 118.6)
XYZxyz(18.5021, 24.0938, 4.8380)
Luminance0.2409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F1D #2F1D8F
analogous
#8F681D #7D8F1D #448F1D
triadic
#7D8F1D #1D7D8F #8F1D7D
tetradic
#7D8F1D #1D8F68 #2F1D8F #8F1D44
square
#7D8F1D #1D8F68 #2F1D8F #8F1D44
split-complementary
#7D8F1D #1D448F #681D8F
monochromatic
#242908 #515C13 #7D8F1D #A9C227 #C4DB4C

Accessibility & contrast

On white

3.61
#7D8F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#7D8F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8F1D
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8F1D#FFFFFF#000000##000000
##7D8F1D1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8f1d;
/* rgb */ color: rgb(125, 143, 29);
/* oklch */ color: oklch(61.5% 0.134 118.6);
Tailwind
colors: {
  custom: {
    50: '#a6af64',
    500: '#7d8f1d',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f1d;
$custom-light: #a6af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f1d",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 69.474,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61497,
    "c": 0.13376,
    "h": 118.6
  },
  "luminance": 0.24094
}

Semantic roles & 50–950 ramp

primary
#7D8F1D
secondary
#5D4BBD
accent
#3FE95A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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