#938228#938228

#938228 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.5% C 0.109 H 98.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#938228
RGBrgb(147, 130, 40)
HSLhsl(50, 57%, 37%)
HSVhsv(50, 73%, 58%)
CMYKcmyk(0%, 11.6%, 72.8%, 42.4%)
CIE-LABlab(54.37, -3.95, 48.57)
CIE-LCHlch(54.37, 48.73, 94.65°)
OKLaboklab(60.53% -0.0157 0.108)
OKLCHoklch(60.53% 0.109 98.3)
XYZxyz(20.3992, 22.3225, 5.2413)
Luminance0.2232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#938228 #283993
analogous
#934D28 #938228 #6F9328
triadic
#938228 #289382 #822893
tetradic
#938228 #28934D #283993 #93286F
square
#938228 #28934D #283993 #93286F
split-complementary
#938228 #286F93 #4D2893
monochromatic
#332D0E #63571B #938228 #C3AD35 #D4C261

Accessibility & contrast

On white

3.84
#938228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#938228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #938228
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##938228#FFFFFF#000000##000000
##9382281.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1A
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#9F7870
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #938228;
/* rgb */ color: rgb(147, 130, 40);
/* oklch */ color: oklch(60.5% 0.109 98.3);
Tailwind
colors: {
  custom: {
    50: '#b6a668',
    500: '#938228',
    950: '#000000',
  },
}
SCSS
$custom: #938228;
$custom-light: #b6a668;
$custom-dark: #000000;
JSON
{
  "hex": "#938228",
  "rgb": {
    "r": 147,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 50.467,
    "s": 57.219,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60529,
    "c": 0.10909,
    "h": 98.3
  },
  "luminance": 0.22322
}

Semantic roles & 50–950 ramp

primary
#938228
secondary
#5D6CBA
accent
#60E047
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #938228

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

Preview Lab → · Contrast checker → · Palette generator →

#938228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva