#7D8F20#7D8F20

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

Color values

HEX#7D8F20
RGBrgb(125, 143, 32)
HSLhsl(70, 63%, 34%)
HSVhsv(70, 78%, 56%)
CMYKcmyk(12.6%, 0%, 77.6%, 43.9%)
CIE-LABlab(56.20, -21.21, 52.65)
CIE-LCHlch(56.20, 56.77, 111.94°)
OKLaboklab(61.51% -0.0635 0.1159)
OKLCHoklch(61.51% 0.132 118.7)
XYZxyz(18.5410, 24.1093, 5.0430)
Luminance0.2411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F20 #32208F
analogous
#8F6A20 #7D8F20 #458F20
triadic
#7D8F20 #207D8F #8F207D
tetradic
#7D8F20 #208F6A #32208F #8F2045
square
#7D8F20 #208F6A #32208F #8F2045
split-complementary
#7D8F20 #20458F #6A208F
monochromatic
#262B0A #515D15 #7D8F20 #A9C12B #C2D851

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8F20#FFFFFF#000000##000000
##7D8F201.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)
#998704
Deuteranopia (green-blind)
#97872A
Tritanopia (blue-blind)
#85877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7d8f20;
/* rgb */ color: rgb(125, 143, 32);
/* oklch */ color: oklch(61.5% 0.132 118.7);
Tailwind
colors: {
  custom: {
    50: '#a6af65',
    500: '#7d8f20',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f20;
$custom-light: #a6af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f20",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 69.73,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61514,
    "c": 0.13214,
    "h": 118.7
  },
  "luminance": 0.24109
}

Semantic roles & 50–950 ramp

primary
#7D8F20
secondary
#614FBB
accent
#41E65C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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