#AFA338#AFA338

#AFA338 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.126 H 102.9°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA338
RGBrgb(175, 163, 56)
HSLhsl(54, 52%, 45%)
HSVhsv(54, 68%, 69%)
CMYKcmyk(0%, 6.9%, 68%, 31.4%)
CIE-LABlab(66.21, -8.37, 54.77)
CIE-LCHlch(66.21, 55.41, 98.69°)
OKLaboklab(70.58% -0.0281 0.123)
OKLCHoklch(70.58% 0.126 102.9)
XYZxyz(31.4915, 35.5951, 8.9524)
Luminance0.3559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA338 #3844AF
analogous
#AF6838 #AFA338 #7FAF38
triadic
#AFA338 #38AFA3 #A338AF
tetradic
#AFA338 #38AF68 #3844AF #AF387F
square
#AFA338 #38AF68 #3844AF #AF387F
split-complementary
#AFA338 #387FAF #6838AF
monochromatic
#524D1A #817829 #AFA338 #CABF5A #D9D188

Accessibility & contrast

On white

2.59
#AFA338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA338
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA338#FFFFFF#000000##000000
##AFA3381.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B5A33F
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa338;
/* rgb */ color: rgb(175, 163, 56);
/* oklch */ color: oklch(70.6% 0.126 102.9);
Tailwind
colors: {
  custom: {
    50: '#cabe75',
    500: '#afa338',
    950: '#000000',
  },
}
SCSS
$custom: #afa338;
$custom-light: #cabe75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa338",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 53.95,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.70584,
    "c": 0.12614,
    "h": 102.9
  },
  "luminance": 0.35594
}

Semantic roles & 50–950 ramp

primary
#AFA338
secondary
#8086C3
accent
#5BDB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA338

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

Preview Lab → · Contrast checker → · Palette generator →

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