#948C1C#948C1C

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

Color values

HEX#948C1C
RGBrgb(148, 140, 28)
HSLhsl(56, 68%, 35%)
HSVhsv(56, 81%, 58%)
CMYKcmyk(0%, 5.4%, 81.1%, 42%)
CIE-LABlab(57.21, -9.49, 55.56)
CIE-LCHlch(57.21, 56.36, 99.69°)
OKLaboklab(62.79% -0.0325 0.1204)
OKLCHoklch(62.79% 0.125 105.1)
XYZxyz(21.8014, 25.1368, 4.8019)
Luminance0.2514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948C1C #1C2494
analogous
#94501C #948C1C #60941C
triadic
#948C1C #1C948C #8C1C94
tetradic
#948C1C #1C9450 #1C2494 #941C60
square
#948C1C #1C9450 #1C2494 #941C60
split-complementary
#948C1C #1C6094 #501C94
monochromatic
#2D2B09 #615B12 #948C1C #C7BD26 #DDD44D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##948C1C#FFFFFF#000000##000000
##948C1C1.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)
#998700
Deuteranopia (green-blind)
#9C8B26
Tritanopia (blue-blind)
#A08278
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948c1c;
/* rgb */ color: rgb(148, 140, 28);
/* oklch */ color: oklch(62.8% 0.125 105.1);
Tailwind
colors: {
  custom: {
    50: '#b7ad63',
    500: '#948c1c',
    950: '#000000',
  },
}
SCSS
$custom: #948c1c;
$custom-light: #b7ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#948c1c",
  "rgb": {
    "r": 148,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 56,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.62786,
    "c": 0.12474,
    "h": 105.1
  },
  "luminance": 0.25136
}

Semantic roles & 50–950 ramp

primary
#948C1C
secondary
#4C54C0
accent
#48EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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