#948C1F#948C1F

#948C1F is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.8% C 0.123 H 105.0°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#948C1F
RGBrgb(148, 140, 31)
HSLhsl(56, 65%, 35%)
HSVhsv(56, 79%, 58%)
CMYKcmyk(0%, 5.4%, 79.1%, 42%)
CIE-LABlab(57.22, -9.37, 54.62)
CIE-LCHlch(57.22, 55.42, 99.74°)
OKLaboklab(62.8% -0.0319 0.119)
OKLCHoklch(62.8% 0.123 105)
XYZxyz(21.8391, 25.1519, 5.0005)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948C1F #1F2794
analogous
#94511F #948C1F #62941F
triadic
#948C1F #1F948C #8C1F94
tetradic
#948C1F #1F9451 #1F2794 #941F62
square
#948C1F #1F9451 #1F2794 #941F62
split-complementary
#948C1F #1F6294 #511F94
monochromatic
#2F2C0A #615C14 #948C1F #C7BC2A #DBD253

Accessibility & contrast

On white

3.48
#948C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#948C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948C1F
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948C1F#FFFFFF#000000##000000
##948C1F1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998702
Deuteranopia (green-blind)
#9C8B28
Tritanopia (blue-blind)
#A08278
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948c1f;
/* rgb */ color: rgb(148, 140, 31);
/* oklch */ color: oklch(62.8% 0.123 105.0);
Tailwind
colors: {
  custom: {
    50: '#b7ad65',
    500: '#948c1f',
    950: '#000000',
  },
}
SCSS
$custom: #948c1f;
$custom-light: #b7ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#948c1f",
  "rgb": {
    "r": 148,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 55.897,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.62803,
    "c": 0.12322,
    "h": 105
  },
  "luminance": 0.25151
}

Semantic roles & 50–950 ramp

primary
#948C1F
secondary
#5158BE
accent
#4BE83F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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