#2B2902#2B2902

#2B2902 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.4% C 0.056 H 106.6°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2B2902
RGBrgb(43, 41, 2)
HSLhsl(57, 91%, 9%)
HSVhsv(57, 95%, 17%)
CMYKcmyk(0%, 4.7%, 95.3%, 83.1%)
CIE-LABlab(16.02, -4.75, 22.35)
CIE-LCHlch(16.02, 22.85, 102.00°)
OKLaboklab(27.44% -0.0161 0.054)
OKLCHoklch(27.44% 0.056 106.6)
XYZxyz(1.8002, 2.1039, 0.3687)
Luminance0.0210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2902 #02042B
analogous
#2B1502 #2B2902 #192B02
triadic
#2B2902 #022B29 #29022B
tetradic
#2B2902 #022B15 #02042B #2B0219
square
#2B2902 #022B15 #02042B #2B0219
split-complementary
#2B2902 #02192B #15022B
monochromatic
#1D1C01 #1D1C01 #2B2902 #656105 #A09907

Accessibility & contrast

On white

14.78
#2B2902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2B2902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2902
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2902#FFFFFF#000000##FFFFFF
##2B29021.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2700
Deuteranopia (green-blind)
#2E2904
Tritanopia (blue-blind)
#2F2522
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b2902;
/* rgb */ color: rgb(43, 41, 2);
/* oklch */ color: oklch(27.4% 0.056 106.6);
Tailwind
colors: {
  custom: {
    50: '#666247',
    500: '#2b2902',
    950: '#000000',
  },
}
SCSS
$custom: #2b2902;
$custom-light: #666247;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2902",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 2
  },
  "hsl": {
    "h": 57.073,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.27444,
    "c": 0.05634,
    "h": 106.6
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#2B2902
secondary
#191D70
accent
#33FF29
background
#F6F5F4
surface
#EBEAE6
border
#C6C6C2
text
#060500
muted
#7A7977

Preview Lab

Preview with #2B2902

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

Preview Lab → · Contrast checker → · Palette generator →

#2B2902 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva