#3A4002#3A4002

#3A4002 is a dark, moderate yellow. Relative luminance 0.046; OKLCH L 35.4% C 0.079 H 115.6°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3A4002
RGBrgb(58, 64, 2)
HSLhsl(66, 94%, 13%)
HSVhsv(66, 97%, 25%)
CMYKcmyk(9.4%, 0%, 96.9%, 74.9%)
CIE-LABlab(25.48, -11.02, 33.19)
CIE-LCHlch(25.48, 34.97, 108.37°)
OKLaboklab(35.38% -0.0342 0.0713)
OKLCHoklch(35.38% 0.079 115.6)
XYZxyz(3.5894, 4.5708, 0.7506)
Luminance0.0457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4002 #080240
analogous
#402702 #3A4002 #1B4002
triadic
#3A4002 #023A40 #40023A
tetradic
#3A4002 #024027 #080240 #40021B
square
#3A4002 #024027 #080240 #40021B
split-complementary
#3A4002 #021B40 #270240
monochromatic
#1B1E01 #1B1E01 #3A4002 #707B04 #A6B706

Accessibility & contrast

On white

10.97
#3A4002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A4002 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4002
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4002#FFFFFF#000000##FFFFFF
##3A40021.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#453D08
Tritanopia (blue-blind)
#3F3C35
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a4002;
/* rgb */ color: rgb(58, 64, 2);
/* oklch */ color: oklch(35.4% 0.079 115.6);
Tailwind
colors: {
  custom: {
    50: '#73744a',
    500: '#3a4002',
    950: '#000000',
  },
}
SCSS
$custom: #3a4002;
$custom-light: #73744a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4002",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 2
  },
  "hsl": {
    "h": 65.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.35379,
    "c": 0.07908,
    "h": 115.6
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#3A4002
secondary
#251B83
accent
#29FF3E
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#080801
muted
#7B7B77

Preview Lab

Preview with #3A4002

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

Preview Lab → · Contrast checker → · Palette generator →

#3A4002 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva