#838E1C#838E1C

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

Color values

HEX#838E1C
RGBrgb(131, 142, 28)
HSLhsl(66, 67%, 33%)
HSVhsv(66, 80%, 56%)
CMYKcmyk(7.7%, 0%, 80.3%, 44.3%)
CIE-LABlab(56.34, -18.23, 54.24)
CIE-LCHlch(56.34, 57.22, 108.57°)
OKLaboklab(61.74% -0.0559 0.1183)
OKLCHoklch(61.74% 0.131 115.3)
XYZxyz(19.2432, 24.2555, 4.7664)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E1C #271C8E
analogous
#8E601C #838E1C #4A8E1C
triadic
#838E1C #1C838E #8E1C83
tetradic
#838E1C #1C8E60 #271C8E #8E1C4A
square
#838E1C #1C8E60 #271C8E #8E1C4A
split-complementary
#838E1C #1C4A8E #601C8E
monochromatic
#252808 #545B12 #838E1C #B2C126 #CDDB49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838E1C#FFFFFF#000000##000000
##838E1C1.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)
#988827
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e1c;
/* rgb */ color: rgb(131, 142, 28);
/* oklch */ color: oklch(61.7% 0.131 115.3);
Tailwind
colors: {
  custom: {
    50: '#aaae63',
    500: '#838e1c',
    950: '#000000',
  },
}
SCSS
$custom: #838e1c;
$custom-light: #aaae63;
$custom-dark: #000000;
JSON
{
  "hex": "#838e1c",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 65.789,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61741,
    "c": 0.13086,
    "h": 115.3
  },
  "luminance": 0.24255
}

Semantic roles & 50–950 ramp

primary
#838E1C
secondary
#5449BD
accent
#3EEA4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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