#838B22#838B22

#838B22 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.1% C 0.124 H 113.9°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#838B22
RGBrgb(131, 139, 34)
HSLhsl(65, 61%, 34%)
HSVhsv(65, 76%, 55%)
CMYKcmyk(5.8%, 0%, 75.5%, 45.5%)
CIE-LABlab(55.49, -16.39, 51.46)
CIE-LCHlch(55.49, 54.01, 107.67°)
OKLaboklab(61.07% -0.0503 0.1135)
OKLCHoklch(61.07% 0.124 113.9)
XYZxyz(18.8820, 23.4064, 5.0363)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838B22 #2A228B
analogous
#8B5F22 #838B22 #4F8B22
triadic
#838B22 #22838B #8B2283
tetradic
#838B22 #228B5F #2A228B #8B224F
square
#838B22 #228B5F #2A228B #8B224F
split-complementary
#838B22 #224F8B #5F228B
monochromatic
#26290A #555A16 #838B22 #B1BC2E #CBD553

Accessibility & contrast

On white

3.70
#838B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#838B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838B22
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838B22#FFFFFF#000000##000000
##838B221.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840C
Deuteranopia (green-blind)
#95862B
Tritanopia (blue-blind)
#8C8277
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #838b22;
/* rgb */ color: rgb(131, 139, 34);
/* oklch */ color: oklch(61.1% 0.124 113.9);
Tailwind
colors: {
  custom: {
    50: '#aaac66',
    500: '#838b22',
    950: '#000000',
  },
}
SCSS
$custom: #838b22;
$custom-light: #aaac66;
$custom-dark: #000000;
JSON
{
  "hex": "#838b22",
  "rgb": {
    "r": 131,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 64.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61066,
    "c": 0.12419,
    "h": 113.9
  },
  "luminance": 0.23406
}

Semantic roles & 50–950 ramp

primary
#838B22
secondary
#5850B8
accent
#44E450
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838B22

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

Preview Lab → · Contrast checker → · Palette generator →

#838B22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva