#948D2D#948D2D

#948D2D is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.115 H 105.1°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#948D2D
RGBrgb(148, 141, 45)
HSLhsl(56, 53%, 38%)
HSVhsv(56, 70%, 58%)
CMYKcmyk(0%, 4.7%, 69.6%, 42%)
CIE-LABlab(57.59, -9.24, 49.77)
CIE-LCHlch(57.59, 50.62, 100.51°)
OKLaboklab(63.13% -0.0301 0.1114)
OKLCHoklch(63.13% 0.115 105.1)
XYZxyz(22.2121, 25.5359, 6.2410)
Luminance0.2554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948D2D #2D3494
analogous
#94592D #948D2D #68942D
triadic
#948D2D #2D948D #8D2D94
tetradic
#948D2D #2D9459 #2D3494 #942D68
square
#948D2D #2D9459 #2D3494 #942D68
split-complementary
#948D2D #2D6894 #592D94
monochromatic
#363410 #65601F #948D2D #C3BA3B #D2CB6A

Accessibility & contrast

On white

3.44
#948D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#948D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948D2D
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948D2D#FFFFFF#000000##000000
##948D2D1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#99881F
Deuteranopia (green-blind)
#9C8C33
Tritanopia (blue-blind)
#9F837A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #948d2d;
/* rgb */ color: rgb(148, 141, 45);
/* oklch */ color: oklch(63.1% 0.115 105.1);
Tailwind
colors: {
  custom: {
    50: '#b6ae6c',
    500: '#948d2d',
    950: '#000000',
  },
}
SCSS
$custom: #948d2d;
$custom-light: #b6ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#948d2d",
  "rgb": {
    "r": 148,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 55.922,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63126,
    "c": 0.1154,
    "h": 105.1
  },
  "luminance": 0.25535
}

Semantic roles & 50–950 ramp

primary
#948D2D
secondary
#646AB8
accent
#55DD4B
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #948D2D

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

Preview Lab → · Contrast checker → · Palette generator →

#948D2D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva