#7D8E1A#7D8E1A

#7D8E1A is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.2% C 0.134 H 118.2°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7D8E1A
RGBrgb(125, 142, 26)
HSLhsl(69, 69%, 33%)
HSVhsv(69, 82%, 56%)
CMYKcmyk(12%, 0%, 81.7%, 44.3%)
CIE-LABlab(55.87, -20.96, 54.24)
CIE-LCHlch(55.87, 58.15, 111.13°)
OKLaboklab(61.24% -0.0633 0.1182)
OKLCHoklch(61.24% 0.134 118.2)
XYZxyz(18.3173, 23.7807, 4.6023)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8E1A #2B1A8E
analogous
#8E651A #7D8E1A #438E1A
triadic
#7D8E1A #1A7D8E #8E1A7D
tetradic
#7D8E1A #1A8E65 #2B1A8E #8E1A43
square
#7D8E1A #1A8E65 #2B1A8E #8E1A43
split-complementary
#7D8E1A #1A438E #651A8E
monochromatic
#222707 #4F5A11 #7D8E1A #ABC223 #C7DD45

Accessibility & contrast

On white

3.65
#7D8E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#7D8E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8E1A
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8E1A#FFFFFF#000000##000000
##7D8E1A1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#858679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7d8e1a;
/* rgb */ color: rgb(125, 142, 26);
/* oklch */ color: oklch(61.2% 0.134 118.2);
Tailwind
colors: {
  custom: {
    50: '#a6af62',
    500: '#7d8e1a',
    950: '#000000',
  },
}
SCSS
$custom: #7d8e1a;
$custom-light: #a6af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8e1a",
  "rgb": {
    "r": 125,
    "g": 142,
    "b": 26
  },
  "hsl": {
    "h": 68.793,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.6124,
    "c": 0.13406,
    "h": 118.2
  },
  "luminance": 0.23781
}

Semantic roles & 50–950 ramp

primary
#7D8E1A
secondary
#5745BE
accent
#3CEC56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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