#AFA233#AFA233

#AFA233 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.3% C 0.129 H 102.5°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AFA233
RGBrgb(175, 162, 51)
HSLhsl(54, 55%, 44%)
HSVhsv(54, 71%, 69%)
CMYKcmyk(0%, 7.4%, 70.9%, 31.4%)
CIE-LABlab(65.90, -8.11, 56.47)
CIE-LCHlch(65.90, 57.05, 98.17°)
OKLaboklab(70.33% -0.0279 0.1257)
OKLCHoklch(70.33% 0.129 102.5)
XYZxyz(31.1984, 35.1950, 8.2813)
Luminance0.3519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA233 #3340AF
analogous
#AF6433 #AFA233 #7EAF33
triadic
#AFA233 #33AFA2 #A233AF
tetradic
#AFA233 #33AF64 #3340AF #AF337E
square
#AFA233 #33AF64 #3340AF #AF337E
split-complementary
#AFA233 #337EAF #6433AF
monochromatic
#504A17 #807625 #AFA233 #CDC052 #DBD182

Accessibility & contrast

On white

2.61
#AFA233 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#AFA233 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA233
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA233#FFFFFF#000000##000000
##AFA2331.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D22
Deuteranopia (green-blind)
#B5A33A
Tritanopia (blue-blind)
#BC978C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa233;
/* rgb */ color: rgb(175, 162, 51);
/* oklch */ color: oklch(70.3% 0.129 102.5);
Tailwind
colors: {
  custom: {
    50: '#cabd72',
    500: '#afa233',
    950: '#000000',
  },
}
SCSS
$custom: #afa233;
$custom-light: #cabd72;
$custom-dark: #000000;
JSON
{
  "hex": "#afa233",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 51
  },
  "hsl": {
    "h": 53.71,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.70326,
    "c": 0.12874,
    "h": 102.5
  },
  "luminance": 0.35194
}

Semantic roles & 50–950 ramp

primary
#AFA233
secondary
#7A82C4
accent
#59DE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA233

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

Preview Lab → · Contrast checker → · Palette generator →

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