#AFA33C#AFA33C

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

Color values

HEX#AFA33C
RGBrgb(175, 163, 60)
HSLhsl(54, 49%, 46%)
HSVhsv(54, 66%, 69%)
CMYKcmyk(0%, 6.9%, 65.7%, 31.4%)
CIE-LABlab(66.24, -8.13, 53.13)
CIE-LCHlch(66.24, 53.74, 98.70°)
OKLaboklab(70.62% -0.027 0.1202)
OKLCHoklch(70.62% 0.123 102.6)
XYZxyz(31.5933, 35.6359, 9.4883)
Luminance0.3564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA33C #3C48AF
analogous
#AF693C #AFA33C #81AF3C
triadic
#AFA33C #3CAFA3 #A33CAF
tetradic
#AFA33C #3CAF69 #3C48AF #AF3C81
square
#AFA33C #3CAF69 #3C48AF #AF3C81
split-complementary
#AFA33C #3C81AF #693CAF
monochromatic
#544E1D #81792C #AFA33C #C8BD60 #D8D08D

Accessibility & contrast

On white

2.58
#AFA33C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#AFA33C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA33C
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA33C#FFFFFF#000000##000000
##AFA33C1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E2F
Deuteranopia (green-blind)
#B5A342
Tritanopia (blue-blind)
#BC988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa33c;
/* rgb */ color: rgb(175, 163, 60);
/* oklch */ color: oklch(70.6% 0.123 102.6);
Tailwind
colors: {
  custom: {
    50: '#cabe77',
    500: '#afa33c',
    950: '#000000',
  },
}
SCSS
$custom: #afa33c;
$custom-light: #cabe77;
$custom-dark: #000000;
JSON
{
  "hex": "#afa33c",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 60
  },
  "hsl": {
    "h": 53.739,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.70619,
    "c": 0.12314,
    "h": 102.6
  },
  "luminance": 0.35635
}

Semantic roles & 50–950 ramp

primary
#AFA33C
secondary
#848BC3
accent
#5ED84F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA33C

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

Preview Lab → · Contrast checker → · Palette generator →

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