#508229#508229

#508229 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.2% C 0.132 H 134.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#508229
RGBrgb(80, 130, 41)
HSLhsl(94, 52%, 34%)
HSVhsv(94, 68%, 51%)
CMYKcmyk(38.5%, 0%, 68.5%, 49%)
CIE-LABlab(49.29, -32.76, 41.32)
CIE-LCHlch(49.29, 52.73, 128.41°)
OKLaboklab(55.18% -0.0915 0.0946)
OKLCHoklch(55.18% 0.132 134.1)
XYZxyz(11.6909, 17.8303, 4.9230)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508229 #5B2982
analogous
#7C8229 #508229 #29822E
triadic
#508229 #295082 #822950
tetradic
#508229 #297C82 #5B2982 #822E29
square
#508229 #297C82 #5B2982 #822E29
split-complementary
#508229 #2E2982 #82297C
monochromatic
#17250C #33531A #508229 #6DB138 #8CCB5A

Accessibility & contrast

On white

4.60
#508229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#508229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508229
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508229#FFFFFF#000000##FFFFFF
##5082291.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87781D
Deuteranopia (green-blind)
#807430
Tritanopia (blue-blind)
#507D70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508229;
/* rgb */ color: rgb(80, 130, 41);
/* oklch */ color: oklch(55.2% 0.132 134.1);
Tailwind
colors: {
  custom: {
    50: '#85a668',
    500: '#508229',
    950: '#000000',
  },
}
SCSS
$custom: #508229;
$custom-light: #85a668;
$custom-dark: #000000;
JSON
{
  "hex": "#508229",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 41
  },
  "hsl": {
    "h": 93.708,
    "s": 52.047,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55179,
    "c": 0.13158,
    "h": 134.1
  },
  "luminance": 0.17831
}

Semantic roles & 50–950 ramp

primary
#508229
secondary
#8956B0
accent
#4CDB9D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508229

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

Preview Lab → · Contrast checker → · Palette generator →

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