#948B2A#948B2A

#948B2A is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.116 H 104.0°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#948B2A
RGBrgb(148, 139, 42)
HSLhsl(55, 56%, 37%)
HSVhsv(55, 72%, 58%)
CMYKcmyk(0%, 6.1%, 71.6%, 42%)
CIE-LABlab(57.01, -8.32, 50.40)
CIE-LCHlch(57.01, 51.09, 99.37°)
OKLaboklab(62.65% -0.0279 0.1122)
OKLCHoklch(62.65% 0.116 104)
XYZxyz(21.8642, 24.9292, 5.8502)
Luminance0.2493 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948B2A #2A3394
analogous
#94562A #948B2A #68942A
triadic
#948B2A #2A948B #8B2A94
tetradic
#948B2A #2A9456 #2A3394 #942A68
square
#948B2A #2A9456 #2A3394 #942A68
split-complementary
#948B2A #2A6894 #562A94
monochromatic
#35310F #645E1C #948B2A #C4B838 #D3CA65

Accessibility & contrast

On white

3.51
#948B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#948B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948B2A
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948B2A#FFFFFF#000000##000000
##948B2A1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861B
Deuteranopia (green-blind)
#9B8B30
Tritanopia (blue-blind)
#9F8178
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948b2a;
/* rgb */ color: rgb(148, 139, 42);
/* oklch */ color: oklch(62.7% 0.116 104.0);
Tailwind
colors: {
  custom: {
    50: '#b7ac6a',
    500: '#948b2a',
    950: '#000000',
  },
}
SCSS
$custom: #948b2a;
$custom-light: #b7ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#948b2a",
  "rgb": {
    "r": 148,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 54.906,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.62651,
    "c": 0.1156,
    "h": 104
  },
  "luminance": 0.24928
}

Semantic roles & 50–950 ramp

primary
#948B2A
secondary
#6068B9
accent
#55DF49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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