#948B28#948B28

#948B28 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.6% C 0.117 H 104.1°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#948B28
RGBrgb(148, 139, 40)
HSLhsl(55, 57%, 37%)
HSVhsv(55, 73%, 58%)
CMYKcmyk(0%, 6.1%, 73%, 42%)
CIE-LABlab(56.99, -8.42, 51.18)
CIE-LCHlch(56.99, 51.87, 99.35°)
OKLaboklab(62.64% -0.0284 0.1135)
OKLCHoklch(62.64% 0.117 104.1)
XYZxyz(21.8293, 24.9152, 5.6663)
Luminance0.2491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948B28 #283194
analogous
#945528 #948B28 #679428
triadic
#948B28 #28948B #8B2894
tetradic
#948B28 #289455 #283194 #942867
square
#948B28 #289455 #283194 #942867
split-complementary
#948B28 #286794 #552894
monochromatic
#34310E #645E1B #948B28 #C4B835 #D5CB62

Accessibility & contrast

On white

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

On black

5.98
#948B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948B28
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948B28#FFFFFF#000000##000000
##948B281.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988617
Deuteranopia (green-blind)
#9B8B2F
Tritanopia (blue-blind)
#9F8178
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948b28;
/* rgb */ color: rgb(148, 139, 40);
/* oklch */ color: oklch(62.6% 0.117 104.1);
Tailwind
colors: {
  custom: {
    50: '#b7ac69',
    500: '#948b28',
    950: '#000000',
  },
}
SCSS
$custom: #948b28;
$custom-light: #b7ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#948b28",
  "rgb": {
    "r": 148,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 55,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62636,
    "c": 0.11695,
    "h": 104.1
  },
  "luminance": 0.24914
}

Semantic roles & 50–950 ramp

primary
#948B28
secondary
#5E65BA
accent
#54E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948B28

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

Preview Lab → · Contrast checker → · Palette generator →

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