#948A1F#948A1F

#948A1F is a light, vivid yellow. Relative luminance 0.246; OKLCH L 62.4% C 0.121 H 103.8°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#948A1F
RGBrgb(148, 138, 31)
HSLhsl(55, 65%, 35%)
HSVhsv(55, 79%, 58%)
CMYKcmyk(0%, 6.8%, 79.1%, 42%)
CIE-LABlab(56.66, -8.29, 54.11)
CIE-LCHlch(56.66, 54.74, 98.71°)
OKLaboklab(62.35% -0.0289 0.1179)
OKLCHoklch(62.35% 0.121 103.8)
XYZxyz(21.5495, 24.5727, 4.9040)
Luminance0.2457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948A1F #1F2994
analogous
#94501F #948A1F #63941F
triadic
#948A1F #1F948A #8A1F94
tetradic
#948A1F #1F9450 #1F2994 #941F63
square
#948A1F #1F9450 #1F2994 #941F63
split-complementary
#948A1F #1F6394 #501F94
monochromatic
#2F2C0A #615B14 #948A1F #C7B92A #DBCF53

Accessibility & contrast

On white

3.55
#948A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#948A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948A1F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948A1F#FFFFFF#000000##000000
##948A1F1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#9A8A27
Tritanopia (blue-blind)
#A08076
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #948a1f;
/* rgb */ color: rgb(148, 138, 31);
/* oklch */ color: oklch(62.4% 0.121 103.8);
Tailwind
colors: {
  custom: {
    50: '#b7ab64',
    500: '#948a1f',
    950: '#000000',
  },
}
SCSS
$custom: #948a1f;
$custom-light: #b7ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#948a1f",
  "rgb": {
    "r": 148,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 54.872,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62352,
    "c": 0.1214,
    "h": 103.8
  },
  "luminance": 0.24572
}

Semantic roles & 50–950 ramp

primary
#948A1F
secondary
#515ABE
accent
#4EE83F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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