#948B1D#948B1D

#948B1D is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.6% C 0.123 H 104.5°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#948B1D
RGBrgb(148, 139, 29)
HSLhsl(55, 67%, 35%)
HSVhsv(55, 80%, 58%)
CMYKcmyk(0%, 6.1%, 80.4%, 42%)
CIE-LABlab(56.93, -8.91, 55.00)
CIE-LCHlch(56.93, 55.72, 99.20°)
OKLaboklab(62.57% -0.0308 0.1194)
OKLCHoklch(62.57% 0.123 104.5)
XYZxyz(21.6681, 24.8507, 4.8175)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948B1D #1D2694
analogous
#944F1D #948B1D #62941D
triadic
#948B1D #1D948B #8B1D94
tetradic
#948B1D #1D944F #1D2694 #941D62
square
#948B1D #1D944F #1D2694 #941D62
split-complementary
#948B1D #1D6294 #4F1D94
monochromatic
#2E2B09 #615B13 #948B1D #C7BB27 #DCD24F

Accessibility & contrast

On white

3.52
#948B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#948B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948B1D
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948B1D#FFFFFF#000000##000000
##948B1D1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#9B8B26
Tritanopia (blue-blind)
#A08177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948b1d;
/* rgb */ color: rgb(148, 139, 29);
/* oklch */ color: oklch(62.6% 0.123 104.5);
Tailwind
colors: {
  custom: {
    50: '#b7ac64',
    500: '#948b1d',
    950: '#000000',
  },
}
SCSS
$custom: #948b1d;
$custom-light: #b7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#948b1d",
  "rgb": {
    "r": 148,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 55.462,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62566,
    "c": 0.12334,
    "h": 104.5
  },
  "luminance": 0.2485
}

Semantic roles & 50–950 ramp

primary
#948B1D
secondary
#4E56BF
accent
#4BEA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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