#7D8D2B#7D8D2B

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

Color values

HEX#7D8D2B
RGBrgb(125, 141, 43)
HSLhsl(70, 53%, 36%)
HSVhsv(70, 70%, 55%)
CMYKcmyk(11.3%, 0%, 69.5%, 44.7%)
CIE-LABlab(55.67, -19.58, 48.03)
CIE-LCHlch(55.67, 51.86, 112.18°)
OKLaboklab(61.11% -0.0579 0.1081)
OKLCHoklch(61.11% 0.123 118.2)
XYZxyz(18.4187, 23.5843, 5.8670)
Luminance0.2358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8D2B #3B2B8D
analogous
#8D6C2B #7D8D2B #4C8D2B
triadic
#7D8D2B #2B7D8D #8D2B7D
tetradic
#7D8D2B #2B8D6C #3B2B8D #8D2B4C
square
#7D8D2B #2B8D6C #3B2B8D #8D2B4C
split-complementary
#7D8D2B #2B4C8D #6C2B8D
monochromatic
#2A2F0E #535E1D #7D8D2B #A7BC39 #BECF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8D2B#FFFFFF#000000##000000
##7D8D2B1.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)
#96851C
Deuteranopia (green-blind)
#958632
Tritanopia (blue-blind)
#858579
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7d8d2b;
/* rgb */ color: rgb(125, 141, 43);
/* oklch */ color: oklch(61.1% 0.123 118.2);
Tailwind
colors: {
  custom: {
    50: '#a5ae6a',
    500: '#7d8d2b',
    950: '#000000',
  },
}
SCSS
$custom: #7d8d2b;
$custom-light: #a5ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8d2b",
  "rgb": {
    "r": 125,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 69.796,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61112,
    "c": 0.1226,
    "h": 118.2
  },
  "luminance": 0.23584
}

Semantic roles & 50–950 ramp

primary
#7D8D2B
secondary
#6C5EB6
accent
#4BDD63
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7D8D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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