#2A5310#2A5310

#2A5310 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.106 H 136.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2A5310
RGBrgb(42, 83, 16)
HSLhsl(97, 68%, 19%)
HSVhsv(97, 81%, 33%)
CMYKcmyk(49.4%, 0%, 80.7%, 67.5%)
CIE-LABlab(31.15, -27.29, 32.63)
CIE-LCHlch(31.15, 42.54, 129.91°)
OKLaboklab(39.74% -0.076 0.0732)
OKLCHoklch(39.74% 0.106 136.1)
XYZxyz(4.1415, 6.7159, 1.5682)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5310 #391053
analogous
#4C5310 #2A5310 #105317
triadic
#2A5310 #102A53 #53102A
tetradic
#2A5310 #104C53 #391053 #531710
square
#2A5310 #104C53 #391053 #531710
split-complementary
#2A5310 #171053 #53104C
monochromatic
#0D1A05 #102006 #2A5310 #44861A #5EBA24

Accessibility & contrast

On white

8.96
#2A5310 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A5310 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5310
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5310#FFFFFF#000000##FFFFFF
##2A53101.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B04
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#285046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5310;
/* rgb */ color: rgb(42, 83, 16);
/* oklch */ color: oklch(39.7% 0.106 136.1);
Tailwind
colors: {
  custom: {
    50: '#688454',
    500: '#2a5310',
    950: '#000000',
  },
}
SCSS
$custom: #2a5310;
$custom-light: #688454;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5310",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 16
  },
  "hsl": {
    "h": 96.716,
    "s": 67.677,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39737,
    "c": 0.10553,
    "h": 136.1
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#2A5310
secondary
#6A328D
accent
#3DEBA7
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5310

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

Preview Lab → · Contrast checker → · Palette generator →

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