#948D28#948D28

#948D28 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.119 H 105.3°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#948D28
RGBrgb(148, 141, 40)
HSLhsl(56, 57%, 37%)
HSVhsv(56, 73%, 58%)
CMYKcmyk(0%, 4.7%, 73%, 42%)
CIE-LABlab(57.56, -9.51, 51.73)
CIE-LCHlch(57.56, 52.60, 100.41°)
OKLaboklab(63.09% -0.0314 0.1146)
OKLCHoklch(63.09% 0.119 105.3)
XYZxyz(22.1215, 25.4997, 5.7637)
Luminance0.2550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948D28 #282F94
analogous
#945728 #948D28 #659428
triadic
#948D28 #28948D #8D2894
tetradic
#948D28 #289457 #282F94 #942865
square
#948D28 #289457 #282F94 #942865
split-complementary
#948D28 #286594 #572894
monochromatic
#34310E #645F1B #948D28 #C4BB35 #D5CD62

Accessibility & contrast

On white

3.44
#948D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#948D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948D28
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948D28#FFFFFF#000000##000000
##948D281.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8817
Deuteranopia (green-blind)
#9C8C2F
Tritanopia (blue-blind)
#9F8379
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #948d28;
/* rgb */ color: rgb(148, 141, 40);
/* oklch */ color: oklch(63.1% 0.119 105.3);
Tailwind
colors: {
  custom: {
    50: '#b7ae69',
    500: '#948d28',
    950: '#000000',
  },
}
SCSS
$custom: #948d28;
$custom-light: #b7ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#948d28",
  "rgb": {
    "r": 148,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 56.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63087,
    "c": 0.11885,
    "h": 105.3
  },
  "luminance": 0.25499
}

Semantic roles & 50–950 ramp

primary
#948D28
secondary
#5E64BA
accent
#51E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948D28

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

Preview Lab → · Contrast checker → · Palette generator →

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