#508123#508123

#508123 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.9% C 0.135 H 133.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#508123
RGBrgb(80, 129, 35)
HSLhsl(91, 57%, 32%)
HSVhsv(91, 73%, 51%)
CMYKcmyk(38%, 0%, 72.9%, 49.4%)
CIE-LABlab(48.92, -32.79, 43.46)
CIE-LCHlch(48.92, 54.44, 127.04°)
OKLaboklab(54.86% -0.0921 0.0982)
OKLCHoklch(54.86% 0.135 133.2)
XYZxyz(11.4617, 17.5268, 4.3689)
Luminance0.1753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508123 #542381
analogous
#7F8123 #508123 #238125
triadic
#508123 #235081 #812350
tetradic
#508123 #237F81 #542381 #812523
square
#508123 #237F81 #542381 #812523
split-complementary
#508123 #252381 #81237F
monochromatic
#142109 #325116 #508123 #6EB130 #8CCF4F

Accessibility & contrast

On white

4.66
#508123 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#508123 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508123
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508123#FFFFFF#000000##FFFFFF
##5081231.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867714
Deuteranopia (green-blind)
#80732C
Tritanopia (blue-blind)
#507C6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #508123;
/* rgb */ color: rgb(80, 129, 35);
/* oklch */ color: oklch(54.9% 0.135 133.2);
Tailwind
colors: {
  custom: {
    50: '#85a664',
    500: '#508123',
    950: '#000000',
  },
}
SCSS
$custom: #508123;
$custom-light: #85a664;
$custom-dark: #000000;
JSON
{
  "hex": "#508123",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 35
  },
  "hsl": {
    "h": 91.277,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54859,
    "c": 0.1346,
    "h": 133.2
  },
  "luminance": 0.17527
}

Semantic roles & 50–950 ramp

primary
#508123
secondary
#824DB3
accent
#47E197
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508123

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

Preview Lab → · Contrast checker → · Palette generator →

#508123 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva