#838D18#838D18

#838D18 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.5% C 0.132 H 114.8°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#838D18
RGBrgb(131, 141, 24)
HSLhsl(65, 71%, 32%)
HSVhsv(65, 83%, 55%)
CMYKcmyk(7.1%, 0%, 83%, 44.7%)
CIE-LABlab(56.03, -17.86, 55.13)
CIE-LCHlch(56.03, 57.95, 107.95°)
OKLaboklab(61.48% -0.0552 0.1195)
OKLCHoklch(61.48% 0.132 114.8)
XYZxyz(19.0504, 23.9414, 4.4816)
Luminance0.2394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D18 #22188D
analogous
#8D5C18 #838D18 #498D18
triadic
#838D18 #18838D #8D1883
tetradic
#838D18 #188D5C #22188D #8D1849
square
#838D18 #188D5C #22188D #8D1849
split-complementary
#838D18 #18498D #5C188D
monochromatic
#222406 #52590F #838D18 #B4C121 #D1DF41

Accessibility & contrast

On white

3.63
#838D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#838D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D18
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D18#FFFFFF#000000##000000
##838D181.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#978724
Tritanopia (blue-blind)
#8C8478
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838d18;
/* rgb */ color: rgb(131, 141, 24);
/* oklch */ color: oklch(61.5% 0.132 114.8);
Tailwind
colors: {
  custom: {
    50: '#abae62',
    500: '#838d18',
    950: '#000000',
  },
}
SCSS
$custom: #838d18;
$custom-light: #abae62;
$custom-dark: #000000;
JSON
{
  "hex": "#838d18",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 65.128,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61484,
    "c": 0.13163,
    "h": 114.8
  },
  "luminance": 0.23941
}

Semantic roles & 50–950 ramp

primary
#838D18
secondary
#4C42BF
accent
#3AEE49
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838D18

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

Preview Lab → · Contrast checker → · Palette generator →

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