#A1B338#A1B338

#A1B338 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.0% C 0.146 H 117.4°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#A1B338
RGBrgb(161, 179, 56)
HSLhsl(69, 52%, 46%)
HSVhsv(69, 69%, 70%)
CMYKcmyk(10.1%, 0%, 68.7%, 29.8%)
CIE-LABlab(69.54, -22.59, 57.80)
CIE-LCHlch(69.54, 62.05, 111.34°)
OKLaboklab(72.97% -0.0672 0.1298)
OKLCHoklch(72.97% 0.146 117.4)
XYZxyz(31.5325, 40.1031, 9.8202)
Luminance0.4010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B338 #4A38B3
analogous
#B38738 #A1B338 #64B338
triadic
#A1B338 #38A1B3 #B338A1
tetradic
#A1B338 #38B387 #4A38B3 #B33864
square
#A1B338 #38B387 #4A38B3 #B33864
split-complementary
#A1B338 #3864B3 #8738B3
monochromatic
#4D561B #778429 #A1B338 #BCCC5C #CFDB8B

Accessibility & contrast

On white

2.33
#A1B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#A1B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B338
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B338#FFFFFF#000000##000000
##A1B3381.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA925
Deuteranopia (green-blind)
#BDAB41
Tritanopia (blue-blind)
#ABA99A
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a1b338;
/* rgb */ color: rgb(161, 179, 56);
/* oklch */ color: oklch(73.0% 0.146 117.4);
Tailwind
colors: {
  custom: {
    50: '#c0c976',
    500: '#a1b338',
    950: '#000000',
  },
}
SCSS
$custom: #a1b338;
$custom-light: #c0c976;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b338",
  "rgb": {
    "r": 161,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 68.78,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72969,
    "c": 0.14611,
    "h": 117.4
  },
  "luminance": 0.40103
}

Semantic roles & 50–950 ramp

primary
#A1B338
secondary
#8C82C5
accent
#4CDC61
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A1B338

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

Preview Lab → · Contrast checker → · Palette generator →

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