#162F04#162F04

#162F04 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.4% C 0.074 H 135.0°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#162F04
RGBrgb(22, 47, 4)
HSLhsl(95, 84%, 10%)
HSVhsv(95, 91%, 18%)
CMYKcmyk(53.2%, 0%, 91.5%, 81.6%)
CIE-LABlab(16.56, -18.70, 21.84)
CIE-LCHlch(16.56, 28.75, 130.57°)
OKLaboklab(27.45% -0.0523 0.0523)
OKLCHoklch(27.45% 0.074 135)
XYZxyz(1.3693, 2.2123, 0.4697)
Luminance0.0221 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F04 #1D042F
analogous
#2B2F04 #162F04 #042F08
triadic
#162F04 #04162F #2F0416
tetradic
#162F04 #042B2F #1D042F #2F0804
square
#162F04 #042B2F #1D042F #2F0804
split-complementary
#162F04 #08042F #2F042B
monochromatic
#0D1C02 #0D1C02 #162F04 #306709 #4BA00E

Accessibility & contrast

On white

14.56
#162F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#162F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F04
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F04#FFFFFF#000000##FFFFFF
##162F041.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#2E2808
Tritanopia (blue-blind)
#152D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #162f04;
/* rgb */ color: rgb(22, 47, 4);
/* oklch */ color: oklch(27.4% 0.074 135.0);
Tailwind
colors: {
  custom: {
    50: '#566849',
    500: '#162f04',
    950: '#000000',
  },
}
SCSS
$custom: #162f04;
$custom-light: #566849;
$custom-dark: #000000;
JSON
{
  "hex": "#162f04",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 4
  },
  "hsl": {
    "h": 94.884,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27449,
    "c": 0.07398,
    "h": 135
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#162F04
secondary
#4E1D72
accent
#2DFBA5
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030601
muted
#787A77

Preview Lab

Preview with #162F04

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

Preview Lab → · Contrast checker → · Palette generator →

#162F04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva