#948A28#948A28

#948A28 is a light, moderate yellow. Relative luminance 0.246; OKLCH L 62.4% C 0.116 H 103.4°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#948A28
RGBrgb(148, 138, 40)
HSLhsl(54, 57%, 37%)
HSVhsv(54, 73%, 58%)
CMYKcmyk(0%, 6.8%, 73%, 42%)
CIE-LABlab(56.71, -7.88, 50.90)
CIE-LCHlch(56.71, 51.51, 98.80°)
OKLaboklab(62.41% -0.0269 0.1129)
OKLCHoklch(62.41% 0.116 103.4)
XYZxyz(21.6852, 24.6269, 5.6183)
Luminance0.2463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948A28 #283294
analogous
#945428 #948A28 #689428
triadic
#948A28 #28948A #8A2894
tetradic
#948A28 #289454 #283294 #942868
square
#948A28 #289454 #283294 #942868
split-complementary
#948A28 #286894 #542894
monochromatic
#34300E #645D1B #948A28 #C4B735 #D5CA62

Accessibility & contrast

On white

3.54
#948A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#948A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948A28
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948A28#FFFFFF#000000##000000
##948A281.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978518
Deuteranopia (green-blind)
#9A8A2F
Tritanopia (blue-blind)
#9F8077
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #948a28;
/* rgb */ color: rgb(148, 138, 40);
/* oklch */ color: oklch(62.4% 0.116 103.4);
Tailwind
colors: {
  custom: {
    50: '#b7ab69',
    500: '#948a28',
    950: '#000000',
  },
}
SCSS
$custom: #948a28;
$custom-light: #b7ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#948a28",
  "rgb": {
    "r": 148,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 54.444,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62411,
    "c": 0.11601,
    "h": 103.4
  },
  "luminance": 0.24626
}

Semantic roles & 50–950 ramp

primary
#948A28
secondary
#5E66BA
accent
#55E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948A28

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

Preview Lab → · Contrast checker → · Palette generator →

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