#838F18#838F18

#838F18 is a mid, vivid yellow. Relative luminance 0.245; OKLCH L 62.0% C 0.134 H 115.7°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#838F18
RGBrgb(131, 143, 24)
HSLhsl(66, 71%, 33%)
HSVhsv(66, 83%, 56%)
CMYKcmyk(8.4%, 0%, 83.2%, 43.9%)
CIE-LABlab(56.62, -18.89, 55.65)
CIE-LCHlch(56.62, 58.77, 108.75°)
OKLaboklab(61.96% -0.058 0.1206)
OKLCHoklch(61.96% 0.134 115.7)
XYZxyz(19.3480, 24.5365, 4.5808)
Luminance0.2454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838F18 #24188F
analogous
#8F5F18 #838F18 #488F18
triadic
#838F18 #18838F #8F1883
tetradic
#838F18 #188F5F #24188F #8F1848
square
#838F18 #188F5F #24188F #8F1848
split-complementary
#838F18 #18488F #5F188F
monochromatic
#232606 #535B0F #838F18 #B3C321 #CFDF42

Accessibility & contrast

On white

3.55
#838F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#838F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838F18
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838F18#FFFFFF#000000##000000
##838F181.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#998924
Tritanopia (blue-blind)
#8C867A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #838f18;
/* rgb */ color: rgb(131, 143, 24);
/* oklch */ color: oklch(62.0% 0.134 115.7);
Tailwind
colors: {
  custom: {
    50: '#abaf62',
    500: '#838f18',
    950: '#000000',
  },
}
SCSS
$custom: #838f18;
$custom-light: #abaf62;
$custom-dark: #000000;
JSON
{
  "hex": "#838f18",
  "rgb": {
    "r": 131,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 66.05,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61959,
    "c": 0.13385,
    "h": 115.7
  },
  "luminance": 0.24536
}

Semantic roles & 50–950 ramp

primary
#838F18
secondary
#4F43C0
accent
#3AEE4C
background
#FAFAF6
surface
#F5F4EB
border
#CFCEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838F18

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

Preview Lab → · Contrast checker → · Palette generator →

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