#25271F#25271F

#25271F is a dark, near-neutral yellow-green. Relative luminance 0.019; OKLCH L 26.8% C 0.015 H 118.8°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#25271F
RGBrgb(37, 39, 31)
HSLhsl(75, 11%, 14%)
HSVhsv(75, 21%, 15%)
CMYKcmyk(5.1%, 0%, 20.5%, 84.7%)
CIE-LABlab(15.19, -2.75, 4.99)
CIE-LCHlch(15.19, 5.70, 118.90°)
OKLaboklab(26.79% -0.0071 0.0129)
OKLCHoklch(26.79% 0.015 118.8)
XYZxyz(1.7358, 1.9433, 1.5797)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25271F #211F27
analogous
#27251F #25271F #21271F
triadic
#25271F #1F2527 #271F25
tetradic
#25271F #1F2725 #211F27 #271F21
square
#25271F #1F2725 #211F27 #271F21
split-complementary
#25271F #1F2127 #251F27
monochromatic
#10110E #10110E #25271F #45493A #666B55

Accessibility & contrast

On white

15.12
#25271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25271F
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25271F#FFFFFF#000000##FFFFFF
##25271F1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#28261F
Tritanopia (blue-blind)
#262625
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #25271f;
/* rgb */ color: rgb(37, 39, 31);
/* oklch */ color: oklch(26.8% 0.015 118.8);
Tailwind
colors: {
  custom: {
    50: '#5f615a',
    500: '#25271f',
    950: '#000000',
  },
}
SCSS
$custom: #25271f;
$custom-light: #5f615a;
$custom-dark: #000000;
JSON
{
  "hex": "#25271f",
  "rgb": {
    "r": 37,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 75,
    "s": 11.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26786,
    "c": 0.01468,
    "h": 118.8
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#25271F
secondary
#4E4A57
accent
#73B484
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040503
muted
#797978

Preview Lab

Preview with #25271F

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

Preview Lab → · Contrast checker → · Palette generator →

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