#2A550F#2A550F

#2A550F is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.109 H 136.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2A550F
RGBrgb(42, 85, 15)
HSLhsl(97, 70%, 20%)
HSVhsv(97, 82%, 33%)
CMYKcmyk(50.6%, 0%, 82.4%, 66.7%)
CIE-LABlab(31.86, -28.28, 33.72)
CIE-LCHlch(31.86, 44.01, 129.98°)
OKLaboklab(40.32% -0.0787 0.0753)
OKLCHoklch(40.32% 0.109 136.3)
XYZxyz(4.2895, 7.0235, 1.5815)
Luminance0.0702 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A550F #3A0F55
analogous
#4D550F #2A550F #0F5517
triadic
#2A550F #0F2A55 #550F2A
tetradic
#2A550F #0F4D55 #3A0F55 #55170F
square
#2A550F #0F4D55 #3A0F55 #55170F
split-complementary
#2A550F #170F55 #550F4D
monochromatic
#0D1A05 #102106 #2A550F #448918 #5DBD21

Accessibility & contrast

On white

8.73
#2A550F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2A550F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A550F
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A550F#FFFFFF#000000##FFFFFF
##2A550F1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D02
Deuteranopia (green-blind)
#534A16
Tritanopia (blue-blind)
#285248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a550f;
/* rgb */ color: rgb(42, 85, 15);
/* oklch */ color: oklch(40.3% 0.109 136.3);
Tailwind
colors: {
  custom: {
    50: '#688553',
    500: '#2a550f',
    950: '#000000',
  },
}
SCSS
$custom: #2a550f;
$custom-light: #688553;
$custom-dark: #000000;
JSON
{
  "hex": "#2a550f",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 15
  },
  "hsl": {
    "h": 96.857,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40317,
    "c": 0.10896,
    "h": 136.3
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#2A550F
secondary
#6B318F
accent
#3BEDA8
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A550F

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

Preview Lab → · Contrast checker → · Palette generator →

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