#848D1F#848D1F

#848D1F is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.6% C 0.128 H 114.3°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#848D1F
RGBrgb(132, 141, 31)
HSLhsl(65, 64%, 34%)
HSVhsv(65, 78%, 55%)
CMYKcmyk(6.4%, 0%, 78%, 44.7%)
CIE-LABlab(56.14, -17.13, 53.13)
CIE-LCHlch(56.14, 55.83, 107.87°)
OKLaboklab(61.61% -0.0527 0.1165)
OKLCHoklch(61.61% 0.128 114.3)
XYZxyz(19.2885, 24.0546, 4.9230)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#848D1F #281F8D
analogous
#8D5F1F #848D1F #4D8D1F
triadic
#848D1F #1F848D #8D1F84
tetradic
#848D1F #1F8D5F #281F8D #8D1F4D
square
#848D1F #1F8D5F #281F8D #8D1F4D
split-complementary
#848D1F #1F4D8D #5F1F8D
monochromatic
#262909 #555B14 #848D1F #B3BF2A #CDD84E

Accessibility & contrast

On white

3.61
#848D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#848D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #848D1F
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##848D1F#FFFFFF#000000##000000
##848D1F1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#978829
Tritanopia (blue-blind)
#8D8478
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #848d1f;
/* rgb */ color: rgb(132, 141, 31);
/* oklch */ color: oklch(61.6% 0.128 114.3);
Tailwind
colors: {
  custom: {
    50: '#abae64',
    500: '#848d1f',
    950: '#000000',
  },
}
SCSS
$custom: #848d1f;
$custom-light: #abae64;
$custom-dark: #000000;
JSON
{
  "hex": "#848d1f",
  "rgb": {
    "r": 132,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 64.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61605,
    "c": 0.12785,
    "h": 114.3
  },
  "luminance": 0.24054
}

Semantic roles & 50–950 ramp

primary
#848D1F
secondary
#564DBB
accent
#41E74E
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #848D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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