#948B1F#948B1F

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

Color values

HEX#948B1F
RGBrgb(148, 139, 31)
HSLhsl(55, 65%, 35%)
HSVhsv(55, 79%, 58%)
CMYKcmyk(0%, 6.1%, 79.1%, 42%)
CIE-LABlab(56.94, -8.83, 54.37)
CIE-LCHlch(56.94, 55.08, 99.23°)
OKLaboklab(62.58% -0.0304 0.1185)
OKLCHoklch(62.58% 0.122 104.4)
XYZxyz(21.6937, 24.8610, 4.9520)
Luminance0.2486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948B1F #1F2894
analogous
#94511F #948B1F #62941F
triadic
#948B1F #1F948B #8B1F94
tetradic
#948B1F #1F9451 #1F2894 #941F62
square
#948B1F #1F9451 #1F2894 #941F62
split-complementary
#948B1F #1F6294 #511F94
monochromatic
#2F2C0A #615B14 #948B1F #C7BB2A #DBD053

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##948B1F#FFFFFF#000000##000000
##948B1F1.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)
#988603
Deuteranopia (green-blind)
#9B8B28
Tritanopia (blue-blind)
#A08177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948b1f;
/* rgb */ color: rgb(148, 139, 31);
/* oklch */ color: oklch(62.6% 0.122 104.4);
Tailwind
colors: {
  custom: {
    50: '#b7ac65',
    500: '#948b1f',
    950: '#000000',
  },
}
SCSS
$custom: #948b1f;
$custom-light: #b7ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#948b1f",
  "rgb": {
    "r": 148,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 55.385,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62577,
    "c": 0.12231,
    "h": 104.4
  },
  "luminance": 0.2486
}

Semantic roles & 50–950 ramp

primary
#948B1F
secondary
#5159BE
accent
#4CE83F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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