#28270F#28270F

#28270F is a dark, muted yellow. Relative luminance 0.019; OKLCH L 26.7% C 0.039 H 106.6°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#28270F
RGBrgb(40, 39, 15)
HSLhsl(58, 45%, 11%)
HSVhsv(58, 63%, 16%)
CMYKcmyk(0%, 2.5%, 62.5%, 84.3%)
CIE-LABlab(15.15, -3.85, 15.58)
CIE-LCHlch(15.15, 16.05, 103.88°)
OKLaboklab(26.72% -0.0112 0.0376)
OKLCHoklch(26.72% 0.039 106.6)
XYZxyz(1.6869, 1.9367, 0.7368)
Luminance0.0194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28270F #0F1028
analogous
#281A0F #28270F #1C280F
triadic
#28270F #0F2827 #270F28
tetradic
#28270F #0F281A #0F1028 #280F1C
square
#28270F #0F281A #0F1028 #280F1C
split-complementary
#28270F #0F1C28 #1A0F28
monochromatic
#161608 #161608 #28270F #555220 #817E30

Accessibility & contrast

On white

15.14
#28270F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#28270F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28270F
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28270F#FFFFFF#000000##FFFFFF
##28270F1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A250D
Deuteranopia (green-blind)
#2B2610
Tritanopia (blue-blind)
#2B2421
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28270f;
/* rgb */ color: rgb(40, 39, 15);
/* oklch */ color: oklch(26.7% 0.039 106.6);
Tailwind
colors: {
  custom: {
    50: '#62604e',
    500: '#28270f',
    950: '#000000',
  },
}
SCSS
$custom: #28270f;
$custom-light: #62604e;
$custom-dark: #000000;
JSON
{
  "hex": "#28270f",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 15
  },
  "hsl": {
    "h": 57.6,
    "s": 45.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.26721,
    "c": 0.03924,
    "h": 106.6
  },
  "luminance": 0.01937
}

Semantic roles & 50–950 ramp

primary
#28270F
secondary
#323461
accent
#58D553
background
#F5F5F4
surface
#EAE9E7
border
#C6C5C3
text
#050501
muted
#797977

Preview Lab

Preview with #28270F

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

Preview Lab → · Contrast checker → · Palette generator →

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