#848A1F#848A1F

#848A1F is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 60.9% C 0.125 H 112.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#848A1F
RGBrgb(132, 138, 31)
HSLhsl(63, 63%, 33%)
HSVhsv(63, 78%, 54%)
CMYKcmyk(4.3%, 0%, 77.5%, 45.9%)
CIE-LABlab(55.26, -15.56, 52.32)
CIE-LCHlch(55.26, 54.58, 106.56°)
OKLaboklab(60.9% -0.0483 0.1148)
OKLCHoklch(60.9% 0.125 112.8)
XYZxyz(18.8521, 23.1819, 4.7775)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#848A1F #251F8A
analogous
#8A5A1F #848A1F #4F8A1F
triadic
#848A1F #1F848A #8A1F84
tetradic
#848A1F #1F8A5A #251F8A #8A1F4F
square
#848A1F #1F8A5A #251F8A #8A1F4F
split-complementary
#848A1F #1F4F8A #5A1F8A
monochromatic
#242609 #545814 #848A1F #B4BC2A #CFD74C

Accessibility & contrast

On white

3.73
#848A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#848A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #848A1F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##848A1F#FFFFFF#000000##000000
##848A1F1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#958304
Deuteranopia (green-blind)
#958528
Tritanopia (blue-blind)
#8D8176
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #848a1f;
/* rgb */ color: rgb(132, 138, 31);
/* oklch */ color: oklch(60.9% 0.125 112.8);
Tailwind
colors: {
  custom: {
    50: '#abac64',
    500: '#848a1f',
    950: '#000000',
  },
}
SCSS
$custom: #848a1f;
$custom-light: #abac64;
$custom-dark: #000000;
JSON
{
  "hex": "#848a1f",
  "rgb": {
    "r": 132,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 63.364,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60897,
    "c": 0.12451,
    "h": 112.8
  },
  "luminance": 0.23181
}

Semantic roles & 50–950 ramp

primary
#848A1F
secondary
#514BBA
accent
#41E64B
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #848A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#848A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva