#AFB933#AFB933

#AFB933 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.4% C 0.152 H 113.8°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#AFB933
RGBrgb(175, 185, 51)
HSLhsl(64, 57%, 46%)
HSVhsv(64, 72%, 73%)
CMYKcmyk(5.4%, 0%, 72.4%, 27.5%)
CIE-LABlab(72.26, -19.93, 62.68)
CIE-LCHlch(72.26, 65.77, 107.64°)
OKLaboklab(75.41% -0.0611 0.1388)
OKLCHoklch(75.41% 0.152 113.8)
XYZxyz(35.6268, 44.0516, 9.7574)
Luminance0.4405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB933 #3D33B9
analogous
#B98033 #AFB933 #6CB933
triadic
#AFB933 #33AFB9 #B933AF
tetradic
#AFB933 #33B980 #3D33B9 #B9336C
square
#AFB933 #33B980 #3D33B9 #B9336C
split-complementary
#AFB933 #336CB9 #8033B9
monochromatic
#545919 #828926 #AFB933 #C8D158 #D8DE88

Accessibility & contrast

On white

2.14
#AFB933 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.81
#AFB933 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB933
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB933#FFFFFF#000000##000000
##AFB9331.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B019
Deuteranopia (green-blind)
#C6B23E
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb933;
/* rgb */ color: rgb(175, 185, 51);
/* oklch */ color: oklch(75.4% 0.152 113.8);
Tailwind
colors: {
  custom: {
    50: '#cacd74',
    500: '#afb933',
    950: '#000000',
  },
}
SCSS
$custom: #afb933;
$custom-light: #cacd74;
$custom-dark: #000000;
JSON
{
  "hex": "#afb933",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 51
  },
  "hsl": {
    "h": 64.478,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.75405,
    "c": 0.15163,
    "h": 113.8
  },
  "luminance": 0.44051
}

Semantic roles & 50–950 ramp

primary
#AFB933
secondary
#8580C8
accent
#48E053
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB933

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

Preview Lab → · Contrast checker → · Palette generator →

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