#948D2B#948D2B

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

Color values

HEX#948D2B
RGBrgb(148, 141, 43)
HSLhsl(56, 55%, 37%)
HSVhsv(56, 71%, 58%)
CMYKcmyk(0%, 4.7%, 70.9%, 42%)
CIE-LABlab(57.58, -9.35, 50.57)
CIE-LCHlch(57.58, 51.43, 100.47°)
OKLaboklab(63.11% -0.0307 0.1127)
OKLCHoklch(63.11% 0.117 105.2)
XYZxyz(22.1745, 25.5209, 6.0430)
Luminance0.2552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948D2B #2B3294
analogous
#94592B #948D2B #67942B
triadic
#948D2B #2B948D #8D2B94
tetradic
#948D2B #2B9459 #2B3294 #942B67
square
#948D2B #2B9459 #2B3294 #942B67
split-complementary
#948D2B #2B6794 #592B94
monochromatic
#35330F #65601D #948D2B #C3BA39 #D3CC67

Accessibility & contrast

On white

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

On black

6.10
#948D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948D2B
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948D2B#FFFFFF#000000##000000
##948D2B1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#99881C
Deuteranopia (green-blind)
#9C8C32
Tritanopia (blue-blind)
#9F8379
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #948d2b;
/* rgb */ color: rgb(148, 141, 43);
/* oklch */ color: oklch(63.1% 0.117 105.2);
Tailwind
colors: {
  custom: {
    50: '#b7ae6b',
    500: '#948d2b',
    950: '#000000',
  },
}
SCSS
$custom: #948d2b;
$custom-light: #b7ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#948d2b",
  "rgb": {
    "r": 148,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 56,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.6311,
    "c": 0.11682,
    "h": 105.2
  },
  "luminance": 0.2552
}

Semantic roles & 50–950 ramp

primary
#948D2B
secondary
#6268B9
accent
#53DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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