#7D8D1F#7D8D1F

#7D8D1F is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.0% C 0.130 H 117.9°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7D8D1F
RGBrgb(125, 141, 31)
HSLhsl(69, 64%, 34%)
HSVhsv(69, 78%, 55%)
CMYKcmyk(11.3%, 0%, 78%, 44.7%)
CIE-LABlab(55.59, -20.24, 52.43)
CIE-LCHlch(55.59, 56.20, 111.11°)
OKLaboklab(61.03% -0.0609 0.1152)
OKLCHoklch(61.03% 0.13 117.9)
XYZxyz(18.2301, 23.5088, 4.8734)
Luminance0.2351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8D1F #2F1F8D
analogous
#8D661F #7D8D1F #468D1F
triadic
#7D8D1F #1F7D8D #8D1F7D
tetradic
#7D8D1F #1F8D66 #2F1F8D #8D1F46
square
#7D8D1F #1F8D66 #2F1F8D #8D1F46
split-complementary
#7D8D1F #1F468D #661F8D
monochromatic
#242909 #515B14 #7D8D1F #A9BF2A #C4D84E

Accessibility & contrast

On white

3.68
#7D8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#7D8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8D1F
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8D1F#FFFFFF#000000##000000
##7D8D1F1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#958629
Tritanopia (blue-blind)
#858578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7d8d1f;
/* rgb */ color: rgb(125, 141, 31);
/* oklch */ color: oklch(61.0% 0.130 117.9);
Tailwind
colors: {
  custom: {
    50: '#a6ae64',
    500: '#7d8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d8d1f;
$custom-light: #a6ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8d1f",
  "rgb": {
    "r": 125,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 68.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61026,
    "c": 0.13033,
    "h": 117.9
  },
  "luminance": 0.23509
}

Semantic roles & 50–950 ramp

primary
#7D8D1F
secondary
#5D4DBB
accent
#41E759
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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