#515F12#515F12

#515F12 is a mid, moderate yellow-green. Relative luminance 0.100; OKLCH L 45.8% C 0.099 H 119.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#515F12
RGBrgb(81, 95, 18)
HSLhsl(71, 68%, 22%)
HSVhsv(71, 81%, 37%)
CMYKcmyk(14.7%, 0%, 81.1%, 62.7%)
CIE-LABlab(37.80, -16.55, 39.14)
CIE-LCHlch(37.80, 42.50, 112.91°)
OKLaboklab(45.82% -0.0492 0.0862)
OKLCHoklch(45.82% 0.099 119.7)
XYZxyz(7.5949, 9.9775, 2.0979)
Luminance0.0998 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515F12 #20125F
analogous
#5F4712 #515F12 #2B5F12
triadic
#515F12 #12515F #5F1251
tetradic
#515F12 #125F47 #20125F #5F122B
square
#515F12 #125F47 #20125F #5F122B
split-complementary
#515F12 #122B5F #47125F
monochromatic
#161A05 #252C08 #515F12 #7D921C #A9C625

Accessibility & contrast

On white

7.01
#515F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#515F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515F12
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515F12#FFFFFF#000000##FFFFFF
##515F121.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665902
Deuteranopia (green-blind)
#645919
Tritanopia (blue-blind)
#565951
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #515f12;
/* rgb */ color: rgb(81, 95, 18);
/* oklch */ color: oklch(45.8% 0.099 119.7);
Tailwind
colors: {
  custom: {
    50: '#858c57',
    500: '#515f12',
    950: '#000000',
  },
}
SCSS
$custom: #515f12;
$custom-light: #858c57;
$custom-dark: #000000;
JSON
{
  "hex": "#515f12",
  "rgb": {
    "r": 81,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 70.909,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45816,
    "c": 0.09931,
    "h": 119.7
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#515F12
secondary
#473697
accent
#3DEB5C
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #515F12

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

Preview Lab → · Contrast checker → · Palette generator →

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