#515E12#515E12

#515E12 is a mid, moderate yellow-green. Relative luminance 0.098; OKLCH L 45.6% C 0.098 H 119.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#515E12
RGBrgb(81, 94, 18)
HSLhsl(70, 68%, 22%)
HSVhsv(70, 81%, 37%)
CMYKcmyk(13.8%, 0%, 80.9%, 63.1%)
CIE-LABlab(37.48, -16.00, 38.84)
CIE-LCHlch(37.48, 42.01, 112.39°)
OKLaboklab(45.56% -0.0477 0.0856)
OKLCHoklch(45.56% 0.098 119.2)
XYZxyz(7.5054, 9.7985, 2.0681)
Luminance0.0980 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515E12 #1F125E
analogous
#5E4512 #515E12 #2B5E12
triadic
#515E12 #12515E #5E1251
tetradic
#515E12 #125E45 #1F125E #5E122B
square
#515E12 #125E45 #1F125E #5E122B
split-complementary
#515E12 #122B5E #45125E
monochromatic
#161A05 #252B08 #515E12 #7D911C #AAC526

Accessibility & contrast

On white

7.10
#515E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#515E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515E12
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515E12#FFFFFF#000000##FFFFFF
##515E121.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655802
Deuteranopia (green-blind)
#635819
Tritanopia (blue-blind)
#565850
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #515e12;
/* rgb */ color: rgb(81, 94, 18);
/* oklch */ color: oklch(45.6% 0.098 119.2);
Tailwind
colors: {
  custom: {
    50: '#848b57',
    500: '#515e12',
    950: '#000000',
  },
}
SCSS
$custom: #515e12;
$custom-light: #848b57;
$custom-dark: #000000;
JSON
{
  "hex": "#515e12",
  "rgb": {
    "r": 81,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 70.263,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.45556,
    "c": 0.09802,
    "h": 119.2
  },
  "luminance": 0.09798
}

Semantic roles & 50–950 ramp

primary
#515E12
secondary
#463596
accent
#3DEB5B
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #515E12

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

Preview Lab → · Contrast checker → · Palette generator →

#515E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva