#838822#838822

#838822 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.4% C 0.121 H 112.3°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#838822
RGBrgb(131, 136, 34)
HSLhsl(63, 60%, 33%)
HSVhsv(63, 75%, 53%)
CMYKcmyk(3.7%, 0%, 75%, 46.7%)
CIE-LABlab(54.61, -14.81, 50.63)
CIE-LCHlch(54.61, 52.75, 106.31°)
OKLaboklab(60.36% -0.0459 0.1118)
OKLCHoklch(60.36% 0.121 112.3)
XYZxyz(18.4536, 22.5495, 4.8935)
Luminance0.2255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838822 #272288
analogous
#885A22 #838822 #508822
triadic
#838822 #228388 #882283
tetradic
#838822 #22885A #272288 #882250
square
#838822 #22885A #272288 #882250
split-complementary
#838822 #225088 #5A2288
monochromatic
#25260A #545716 #838822 #B2B92E #CDD351

Accessibility & contrast

On white

3.81
#838822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#838822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838822
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838822#FFFFFF#000000##000000
##8388221.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#93810D
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#8C7F74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #838822;
/* rgb */ color: rgb(131, 136, 34);
/* oklch */ color: oklch(60.4% 0.121 112.3);
Tailwind
colors: {
  custom: {
    50: '#aaaa65',
    500: '#838822',
    950: '#000000',
  },
}
SCSS
$custom: #838822;
$custom-light: #aaaa65;
$custom-dark: #000000;
JSON
{
  "hex": "#838822",
  "rgb": {
    "r": 131,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 62.941,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60358,
    "c": 0.12084,
    "h": 112.3
  },
  "luminance": 0.22549
}

Semantic roles & 50–950 ramp

primary
#838822
secondary
#544FB7
accent
#45E34C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838822

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

Preview Lab → · Contrast checker → · Palette generator →

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