#A6B338#A6B338

#A6B338 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.4% C 0.144 H 115.2°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#A6B338
RGBrgb(166, 179, 56)
HSLhsl(66, 52%, 46%)
HSVhsv(66, 69%, 70%)
CMYKcmyk(7.3%, 0%, 68.7%, 29.8%)
CIE-LABlab(69.92, -20.48, 58.30)
CIE-LCHlch(69.92, 61.79, 109.36°)
OKLaboklab(73.36% -0.0616 0.1307)
OKLCHoklch(73.36% 0.144 115.2)
XYZxyz(32.5606, 40.6332, 9.8684)
Luminance0.4063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B338 #4538B3
analogous
#B38238 #A6B338 #69B338
triadic
#A6B338 #38A6B3 #B338A6
tetradic
#A6B338 #38B382 #4538B3 #B33869
square
#A6B338 #38B382 #4538B3 #B33869
split-complementary
#A6B338 #3869B3 #8238B3
monochromatic
#50561B #7B8429 #A6B338 #C0CC5C #D2DB8B

Accessibility & contrast

On white

2.30
#A6B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#A6B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B338
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B338#FFFFFF#000000##000000
##A6B3381.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA25
Deuteranopia (green-blind)
#BFAC41
Tritanopia (blue-blind)
#B1A99B
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a6b338;
/* rgb */ color: rgb(166, 179, 56);
/* oklch */ color: oklch(73.4% 0.144 115.2);
Tailwind
colors: {
  custom: {
    50: '#c3c976',
    500: '#a6b338',
    950: '#000000',
  },
}
SCSS
$custom: #a6b338;
$custom-light: #c3c976;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b338",
  "rgb": {
    "r": 166,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 66.341,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73364,
    "c": 0.14447,
    "h": 115.2
  },
  "luminance": 0.40633
}

Semantic roles & 50–950 ramp

primary
#A6B338
secondary
#8982C5
accent
#4CDC5B
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A6B338

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

Preview Lab → · Contrast checker → · Palette generator →

#A6B338 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva