#2A270E#2A270E

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

Color values

HEX#2A270E
RGBrgb(42, 39, 14)
HSLhsl(54, 50%, 11%)
HSVhsv(54, 67%, 16%)
CMYKcmyk(0%, 7.1%, 66.7%, 83.5%)
CIE-LABlab(15.36, -2.88, 16.41)
CIE-LCHlch(15.36, 16.66, 99.96°)
OKLaboklab(26.93% -0.0088 0.0394)
OKLCHoklch(26.93% 0.04 102.5)
XYZxyz(1.7597, 1.9750, 0.7039)
Luminance0.0198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A270E #0E112A
analogous
#2A190E #2A270E #1F2A0E
triadic
#2A270E #0E2A27 #270E2A
tetradic
#2A270E #0E2A19 #0E112A #2A0E1F
square
#2A270E #0E2A19 #0E112A #2A0E1F
split-complementary
#2A270E #0E1F2A #190E2A
monochromatic
#171508 #171508 #2A270E #58521D #867C2D

Accessibility & contrast

On white

15.05
#2A270E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A270E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A270E
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A270E#FFFFFF#000000##FFFFFF
##2A270E1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B260C
Deuteranopia (green-blind)
#2C270F
Tritanopia (blue-blind)
#2D2421
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a270e;
/* rgb */ color: rgb(42, 39, 14);
/* oklch */ color: oklch(26.9% 0.040 102.5);
Tailwind
colors: {
  custom: {
    50: '#64604d',
    500: '#2a270e',
    950: '#000000',
  },
}
SCSS
$custom: #2a270e;
$custom-light: #64604d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a270e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 14
  },
  "hsl": {
    "h": 53.571,
    "s": 50,
    "l": 10.98
  },
  "oklch": {
    "l": 0.26931,
    "c": 0.0404,
    "h": 102.5
  },
  "luminance": 0.01975
}

Semantic roles & 50–950 ramp

primary
#2A270E
secondary
#303664
accent
#5DDA4E
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#050501
muted
#7A7977

Preview Lab

Preview with #2A270E

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

Preview Lab → · Contrast checker → · Palette generator →

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