#28340C#28340C

#28340C is a dark, moderate yellow-green. Relative luminance 0.029; OKLCH L 30.4% C 0.063 H 124.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#28340C
RGBrgb(40, 52, 12)
HSLhsl(78, 63%, 13%)
HSVhsv(78, 77%, 20%)
CMYKcmyk(23.1%, 0%, 76.9%, 79.6%)
CIE-LABlab(19.78, -12.38, 22.66)
CIE-LCHlch(19.78, 25.82, 118.64°)
OKLaboklab(30.42% -0.0356 0.052)
OKLCHoklch(30.42% 0.063 124.4)
XYZxyz(2.1694, 2.9336, 0.7997)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28340C #180C34
analogous
#342C0C #28340C #14340C
triadic
#28340C #0C2834 #340C28
tetradic
#28340C #0C342C #180C34 #340C14
square
#28340C #0C342C #180C34 #340C14
split-complementary
#28340C #0C1434 #2C0C34
monochromatic
#131906 #131906 #28340C #4E6617 #749723

Accessibility & contrast

On white

13.23
#28340C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28340C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28340C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28340C#FFFFFF#000000##FFFFFF
##28340C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373007
Deuteranopia (green-blind)
#36300F
Tritanopia (blue-blind)
#2A312C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28340c;
/* rgb */ color: rgb(40, 52, 12);
/* oklch */ color: oklch(30.4% 0.063 124.4);
Tailwind
colors: {
  custom: {
    50: '#636b4d',
    500: '#28340c',
    950: '#000000',
  },
}
SCSS
$custom: #28340c;
$custom-light: #636b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#28340c",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 12
  },
  "hsl": {
    "h": 78,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.30418,
    "c": 0.06299,
    "h": 124.4
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#28340C
secondary
#402C70
accent
#42E673
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050601
muted
#7A7A77

Preview Lab

Preview with #28340C

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

Preview Lab → · Contrast checker → · Palette generator →

#28340C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva