#2A270B#2A270B

#2A270B is a dark, muted yellow. Relative luminance 0.020; OKLCH L 26.9% C 0.044 H 103.2°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2A270B
RGBrgb(42, 39, 11)
HSLhsl(54, 58%, 10%)
HSVhsv(54, 74%, 16%)
CMYKcmyk(0%, 7.1%, 73.8%, 83.5%)
CIE-LABlab(15.32, -3.18, 17.76)
CIE-LCHlch(15.32, 18.04, 100.17°)
OKLaboklab(26.89% -0.01 0.0428)
OKLCHoklch(26.89% 0.044 103.2)
XYZxyz(1.7408, 1.9675, 0.6046)
Luminance0.0197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A270B #0B0E2A
analogous
#2A170B #2A270B #1D2A0B
triadic
#2A270B #0B2A27 #270B2A
tetradic
#2A270B #0B2A17 #0B0E2A #2A0B1D
square
#2A270B #0B2A17 #0B0E2A #2A0B1D
split-complementary
#2A270B #0B1D2A #170B2A
monochromatic
#181706 #181706 #2A270B #5A5418 #8B8124

Accessibility & contrast

On white

15.07
#2A270B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A270B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A270B
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A270B#FFFFFF#000000##FFFFFF
##2A270B1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2508
Deuteranopia (green-blind)
#2C270C
Tritanopia (blue-blind)
#2E2421
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a270b;
/* rgb */ color: rgb(42, 39, 11);
/* oklch */ color: oklch(26.9% 0.044 103.2);
Tailwind
colors: {
  custom: {
    50: '#64604c',
    500: '#2a270b',
    950: '#000000',
  },
}
SCSS
$custom: #2a270b;
$custom-light: #64604c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a270b",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 11
  },
  "hsl": {
    "h": 54.194,
    "s": 58.491,
    "l": 10.392
  },
  "oklch": {
    "l": 0.26887,
    "c": 0.04396,
    "h": 103.2
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#2A270B
secondary
#2B3066
accent
#55E246
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#050501
muted
#7A7977

Preview Lab

Preview with #2A270B

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

Preview Lab → · Contrast checker → · Palette generator →

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