#838C18#838C18

#838C18 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.2% C 0.131 H 114.3°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#838C18
RGBrgb(131, 140, 24)
HSLhsl(65, 71%, 32%)
HSVhsv(65, 83%, 55%)
CMYKcmyk(6.4%, 0%, 82.9%, 45.1%)
CIE-LABlab(55.73, -17.34, 54.88)
CIE-LCHlch(55.73, 57.55, 107.53°)
OKLaboklab(61.25% -0.0538 0.119)
OKLCHoklch(61.25% 0.131 114.3)
XYZxyz(18.9036, 23.6478, 4.4326)
Luminance0.2365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838C18 #21188C
analogous
#8C5B18 #838C18 #498C18
triadic
#838C18 #18838C #8C1883
tetradic
#838C18 #188C5B #21188C #8C1849
square
#838C18 #188C5B #21188C #8C1849
split-complementary
#838C18 #18498C #5B188C
monochromatic
#212406 #52580F #838C18 #B4C021 #D2DE40

Accessibility & contrast

On white

3.67
#838C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#838C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838C18
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838C18#FFFFFF#000000##000000
##838C181.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968724
Tritanopia (blue-blind)
#8C8377
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838c18;
/* rgb */ color: rgb(131, 140, 24);
/* oklch */ color: oklch(61.2% 0.131 114.3);
Tailwind
colors: {
  custom: {
    50: '#abad61',
    500: '#838c18',
    950: '#000000',
  },
}
SCSS
$custom: #838c18;
$custom-light: #abad61;
$custom-dark: #000000;
JSON
{
  "hex": "#838c18",
  "rgb": {
    "r": 131,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 64.655,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61246,
    "c": 0.13054,
    "h": 114.3
  },
  "luminance": 0.23647
}

Semantic roles & 50–950 ramp

primary
#838C18
secondary
#4B41BF
accent
#3AED48
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838C18

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

Preview Lab → · Contrast checker → · Palette generator →

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