#2A270C#2A270C

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

Color values

HEX#2A270C
RGBrgb(42, 39, 12)
HSLhsl(54, 56%, 11%)
HSVhsv(54, 71%, 16%)
CMYKcmyk(0%, 7.1%, 71.4%, 83.5%)
CIE-LABlab(15.33, -3.09, 17.33)
CIE-LCHlch(15.33, 17.60, 100.10°)
OKLaboklab(26.9% -0.0096 0.0417)
OKLCHoklch(26.9% 0.043 103)
XYZxyz(1.7468, 1.9699, 0.6360)
Luminance0.0197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A270C #0C0F2A
analogous
#2A180C #2A270C #1E2A0C
triadic
#2A270C #0C2A27 #270C2A
tetradic
#2A270C #0C2A18 #0C0F2A #2A0C1E
square
#2A270C #0C2A18 #0C0F2A #2A0C1E
split-complementary
#2A270C #0C1E2A #180C2A
monochromatic
#181607 #181607 #2A270C #5A531A #897F27

Accessibility & contrast

On white

15.06
#2A270C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A270C
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A270C#FFFFFF#000000##FFFFFF
##2A270C1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a270c;
/* rgb */ color: rgb(42, 39, 12);
/* oklch */ color: oklch(26.9% 0.043 103.0);
Tailwind
colors: {
  custom: {
    50: '#64604c',
    500: '#2a270c',
    950: '#000000',
  },
}
SCSS
$custom: #2a270c;
$custom-light: #64604c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a270c",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 12
  },
  "hsl": {
    "h": 54,
    "s": 55.556,
    "l": 10.588
  },
  "oklch": {
    "l": 0.26901,
    "c": 0.04282,
    "h": 103
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#2A270C
secondary
#2D3265
accent
#58DF49
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#050501
muted
#7A7977

Preview Lab

Preview with #2A270C

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

Preview Lab → · Contrast checker → · Palette generator →

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