#AFB334#AFB334

#AFB334 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.1% C 0.145 H 111.3°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFB334
RGBrgb(175, 179, 52)
HSLhsl(62, 55%, 45%)
HSVhsv(62, 71%, 70%)
CMYKcmyk(2.2%, 0%, 70.9%, 29.8%)
CIE-LABlab(70.60, -16.87, 60.71)
CIE-LCHlch(70.60, 63.01, 105.53°)
OKLaboklab(74.07% -0.0524 0.1348)
OKLCHoklch(74.07% 0.145 111.3)
XYZxyz(34.4203, 41.6030, 9.4652)
Luminance0.4160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB334 #3834B3
analogous
#B37834 #AFB334 #6FB334
triadic
#AFB334 #34AFB3 #B334AF
tetradic
#AFB334 #34B378 #3834B3 #B3346F
square
#AFB334 #34B378 #3834B3 #B3346F
split-complementary
#AFB334 #346FB3 #7834B3
monochromatic
#525418 #818426 #AFB334 #CACE56 #D9DC86

Accessibility & contrast

On white

2.25
#AFB334 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFB334 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB334
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB334#FFFFFF#000000##000000
##AFB3341.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB1E
Deuteranopia (green-blind)
#C2AE3E
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb334;
/* rgb */ color: rgb(175, 179, 52);
/* oklch */ color: oklch(74.1% 0.145 111.3);
Tailwind
colors: {
  custom: {
    50: '#cac974',
    500: '#afb334',
    950: '#000000',
  },
}
SCSS
$custom: #afb334;
$custom-light: #cac974;
$custom-dark: #000000;
JSON
{
  "hex": "#afb334",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 52
  },
  "hsl": {
    "h": 61.89,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74073,
    "c": 0.14464,
    "h": 111.3
  },
  "luminance": 0.41602
}

Semantic roles & 50–950 ramp

primary
#AFB334
secondary
#807DC5
accent
#49DE4E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB334

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

Preview Lab → · Contrast checker → · Palette generator →

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