#28310F#28310F

#28310F is a dark, muted yellow-green. Relative luminance 0.027; OKLCH L 29.6% C 0.055 H 122.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#28310F
RGBrgb(40, 49, 15)
HSLhsl(76, 53%, 13%)
HSVhsv(76, 69%, 19%)
CMYKcmyk(18.4%, 0%, 69.4%, 80.8%)
CIE-LABlab(18.72, -10.27, 19.96)
CIE-LCHlch(18.72, 22.45, 117.23°)
OKLaboklab(29.58% -0.0294 0.0465)
OKLCHoklch(29.58% 0.055 122.3)
XYZxyz(2.0596, 2.6822, 0.8611)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28310F #180F31
analogous
#31290F #28310F #17310F
triadic
#28310F #0F2831 #310F28
tetradic
#28310F #0F3129 #180F31 #310F17
square
#28310F #0F3129 #180F31 #310F17
split-complementary
#28310F #0F1731 #290F31
monochromatic
#131707 #131707 #28310F #4E601D #758F2C

Accessibility & contrast

On white

13.67
#28310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#28310F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28310F
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28310F#FFFFFF#000000##FFFFFF
##28310F1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E0B
Deuteranopia (green-blind)
#332E11
Tritanopia (blue-blind)
#2A2E2A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28310f;
/* rgb */ color: rgb(40, 49, 15);
/* oklch */ color: oklch(29.6% 0.055 122.3);
Tailwind
colors: {
  custom: {
    50: '#63694f',
    500: '#28310f',
    950: '#000000',
  },
}
SCSS
$custom: #28310f;
$custom-light: #63694f;
$custom-dark: #000000;
JSON
{
  "hex": "#28310f",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 75.882,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.2958,
    "c": 0.05503,
    "h": 122.3
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#28310F
secondary
#40316B
accent
#4BDD72
background
#F5F6F4
surface
#EAEBE7
border
#C6C6C3
text
#050602
muted
#797A78

Preview Lab

Preview with #28310F

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

Preview Lab → · Contrast checker → · Palette generator →

#28310F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva