#838B18#838B18

#838B18 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.0% C 0.129 H 113.8°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#838B18
RGBrgb(131, 139, 24)
HSLhsl(64, 71%, 32%)
HSVhsv(64, 83%, 55%)
CMYKcmyk(5.8%, 0%, 82.7%, 45.5%)
CIE-LABlab(55.44, -16.81, 54.62)
CIE-LCHlch(55.44, 57.15, 107.11°)
OKLaboklab(61.01% -0.0523 0.1184)
OKLCHoklch(61.01% 0.129 113.8)
XYZxyz(18.7582, 23.3569, 4.3842)
Luminance0.2336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838B18 #20188B
analogous
#8B5A18 #838B18 #4A8B18
triadic
#838B18 #18838B #8B1883
tetradic
#838B18 #188B5A #20188B #8B184A
square
#838B18 #188B5A #20188B #8B184A
split-complementary
#838B18 #184A8B #5A188B
monochromatic
#212306 #52570F #838B18 #B4BF21 #D3DE3F

Accessibility & contrast

On white

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

On black

5.67
#838B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838B18
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838B18#FFFFFF#000000##000000
##838B181.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#8C8276
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #838b18;
/* rgb */ color: rgb(131, 139, 24);
/* oklch */ color: oklch(61.0% 0.129 113.8);
Tailwind
colors: {
  custom: {
    50: '#abac61',
    500: '#838b18',
    950: '#000000',
  },
}
SCSS
$custom: #838b18;
$custom-light: #abac61;
$custom-dark: #000000;
JSON
{
  "hex": "#838b18",
  "rgb": {
    "r": 131,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 64.174,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.6101,
    "c": 0.12944,
    "h": 113.8
  },
  "luminance": 0.23356
}

Semantic roles & 50–950 ramp

primary
#838B18
secondary
#4940BE
accent
#3AED47
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #838B18

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

Preview Lab → · Contrast checker → · Palette generator →

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