#7D8D1A#7D8D1A

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

Color values

HEX#7D8D1A
RGBrgb(125, 141, 26)
HSLhsl(68, 69%, 33%)
HSVhsv(68, 82%, 55%)
CMYKcmyk(11.3%, 0%, 81.6%, 44.7%)
CIE-LABlab(55.57, -20.45, 53.97)
CIE-LCHlch(55.57, 57.72, 110.75°)
OKLaboklab(61% -0.0619 0.1176)
OKLCHoklch(61% 0.133 117.7)
XYZxyz(18.1692, 23.4845, 4.5529)
Luminance0.2348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8D1A #2A1A8D
analogous
#8D631A #7D8D1A #438D1A
triadic
#7D8D1A #1A7D8D #8D1A7D
tetradic
#7D8D1A #1A8D63 #2A1A8D #8D1A43
square
#7D8D1A #1A8D63 #2A1A8D #8D1A43
split-complementary
#7D8D1A #1A438D #631A8D
monochromatic
#212607 #4F5910 #7D8D1A #ABC124 #C8DD45

Accessibility & contrast

On white

3.69
#7D8D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8D1A#FFFFFF#000000##000000
##7D8D1A1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8d1a;
/* rgb */ color: rgb(125, 141, 26);
/* oklch */ color: oklch(61.0% 0.133 117.7);
Tailwind
colors: {
  custom: {
    50: '#a6ae62',
    500: '#7d8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #7d8d1a;
$custom-light: #a6ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8d1a",
  "rgb": {
    "r": 125,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 68.348,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60999,
    "c": 0.1329,
    "h": 117.7
  },
  "luminance": 0.23484
}

Semantic roles & 50–950 ramp

primary
#7D8D1A
secondary
#5645BE
accent
#3CEC55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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