#31501A#31501A

#31501A is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.089 H 134.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#31501A
RGBrgb(49, 80, 26)
HSLhsl(94, 51%, 21%)
HSVhsv(94, 68%, 31%)
CMYKcmyk(38.8%, 0%, 67.5%, 68.6%)
CIE-LABlab(30.56, -22.21, 27.52)
CIE-LCHlch(30.56, 35.37, 128.90°)
OKLaboklab(39.38% -0.0618 0.0639)
OKLCHoklch(39.38% 0.089 134.1)
XYZxyz(4.3217, 6.4647, 1.9972)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31501A #391A50
analogous
#4C501A #31501A #1A501E
triadic
#31501A #1A3150 #501A31
tetradic
#31501A #1A4C50 #391A50 #501E1A
square
#31501A #1A4C50 #391A50 #501E1A
split-complementary
#31501A #1E1A50 #501A4C
monochromatic
#0E1708 #15220B #31501A #4D7E29 #6AAC38

Accessibility & contrast

On white

9.16
#31501A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#31501A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31501A
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31501A#FFFFFF#000000##FFFFFF
##31501A1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A14
Deuteranopia (green-blind)
#4F471E
Tritanopia (blue-blind)
#314D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31501a;
/* rgb */ color: rgb(49, 80, 26);
/* oklch */ color: oklch(39.4% 0.089 134.1);
Tailwind
colors: {
  custom: {
    50: '#6c8159',
    500: '#31501a',
    950: '#000000',
  },
}
SCSS
$custom: #31501a;
$custom-light: #6c8159;
$custom-dark: #000000;
JSON
{
  "hex": "#31501a",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 26
  },
  "hsl": {
    "h": 94.444,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39381,
    "c": 0.08889,
    "h": 134.1
  },
  "luminance": 0.06465
}

Semantic roles & 50–950 ramp

primary
#31501A
secondary
#684086
accent
#4DDA9E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #31501A

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

Preview Lab → · Contrast checker → · Palette generator →

#31501A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva