#838E18#838E18

#838E18 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.7% C 0.133 H 115.3°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#838E18
RGBrgb(131, 142, 24)
HSLhsl(66, 71%, 33%)
HSVhsv(66, 83%, 56%)
CMYKcmyk(7.7%, 0%, 83.1%, 44.3%)
CIE-LABlab(56.32, -18.38, 55.39)
CIE-LCHlch(56.32, 58.36, 108.35°)
OKLaboklab(61.72% -0.0566 0.1201)
OKLCHoklch(61.72% 0.133 115.3)
XYZxyz(19.1985, 24.2376, 4.5309)
Luminance0.2424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E18 #23188E
analogous
#8E5E18 #838E18 #488E18
triadic
#838E18 #18838E #8E1883
tetradic
#838E18 #188E5E #23188E #8E1848
square
#838E18 #188E5E #23188E #8E1848
split-complementary
#838E18 #18488E #5E188E
monochromatic
#222506 #535A0F #838E18 #B3C221 #D0DF41

Accessibility & contrast

On white

3.59
#838E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#838E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E18
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E18#FFFFFF#000000##000000
##838E181.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#988824
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e18;
/* rgb */ color: rgb(131, 142, 24);
/* oklch */ color: oklch(61.7% 0.133 115.3);
Tailwind
colors: {
  custom: {
    50: '#abae62',
    500: '#838e18',
    950: '#000000',
  },
}
SCSS
$custom: #838e18;
$custom-light: #abae62;
$custom-dark: #000000;
JSON
{
  "hex": "#838e18",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 65.593,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61721,
    "c": 0.13274,
    "h": 115.3
  },
  "luminance": 0.24237
}

Semantic roles & 50–950 ramp

primary
#838E18
secondary
#4E42C0
accent
#3AEE4B
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E18

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

Preview Lab → · Contrast checker → · Palette generator →

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