#314212#314212

#314212 is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.3% C 0.074 H 126.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#314212
RGBrgb(49, 66, 18)
HSLhsl(81, 57%, 16%)
HSVhsv(81, 73%, 26%)
CMYKcmyk(25.8%, 0%, 72.7%, 74.1%)
CIE-LABlab(25.54, -15.55, 26.11)
CIE-LCHlch(25.54, 30.39, 120.78°)
OKLaboklab(35.28% -0.0443 0.0597)
OKLCHoklch(35.28% 0.074 126.6)
XYZxyz(3.3240, 4.5930, 1.2836)
Luminance0.0459 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314212 #231242
analogous
#423B12 #314212 #194212
triadic
#314212 #123142 #421231
tetradic
#314212 #12423B #231242 #421219
square
#314212 #12423B #231242 #421219
split-complementary
#314212 #121942 #3B1242
monochromatic
#121807 #121807 #314212 #55721F #78A22C

Accessibility & contrast

On white

10.95
#314212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#314212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314212
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314212#FFFFFF#000000##FFFFFF
##3142121.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D0C
Deuteranopia (green-blind)
#433C16
Tritanopia (blue-blind)
#333F38
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #314212;
/* rgb */ color: rgb(49, 66, 18);
/* oklch */ color: oklch(35.3% 0.074 126.6);
Tailwind
colors: {
  custom: {
    50: '#6b7652',
    500: '#314212',
    950: '#000000',
  },
}
SCSS
$custom: #314212;
$custom-light: #6b7652;
$custom-dark: #000000;
JSON
{
  "hex": "#314212",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 18
  },
  "hsl": {
    "h": 81.25,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35282,
    "c": 0.07438,
    "h": 126.6
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#314212
secondary
#4E357B
accent
#47E07E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #314212

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

Preview Lab → · Contrast checker → · Palette generator →

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